David Reaver
David Reaver
In my package, `quantities`, I require that any prefix be followed by a valid unit. For example, if I see `"millimeter"`, I will identify `"milli"` as a valid prefix, but...
Thanks! > Is it true that your parser aims to parse natural-language English names for units for use in calculators and so forth? When I define each unit, I have...
I'm experiencing the same thing. Did you ever find a fix?
When you say filenames don't match, do you mean file name and module name? I tried `ghc-mod` in a file called `Temp.hs`, but I started the file with `module Main...
Also, if you want to see some real-world code that would benefit, I have tons of `ToJSON` declarations like this in one of my libraries: https://github.com/frontrowed/stratosphere/blob/7caca3b2994fedeaf1e68139892b6cc3a6747d64/library-gen/Stratosphere/Resources/EC2Instance.hs#L57-L90
> Regardless of these operators, have you considered deriving these instances? Definitely, I try as much as possible to use TH or Generic to derive instances. In some cases, though,...
Hey @archaephyrryx, here is something I use similar to what you want: ``` haskell sampledBehavior :: Event () -> Behavior (Behavior a) -> Moment (Behavior a) sampledBehavior e b =...
Also, if anyone else has (partial?) solutions to this problem that don't involve a Monad instance, I would love to see them. We could add them to a wiki somewhere....
Hey @HeinrichApfelmus, is it possible you need a `setup-depends` field that just includes `Cabal` and `cabal-macosx`? Here are the [cabal docs](https://www.haskell.org/cabal/users-guide/developing-packages.html#custom-setup-scripts) for custom setup scripts. I'm not sure how this...
To be honest I have no idea. I was just subscribed to this repo, saw this issue, and thought "hm there has to be a way to solve that." :smile:...