sleexyz / hylogen

GLSL embedded in Haskell
https://hylogen.com
481 stars 25 forks source link

Failure to build hylide #83

Open ChrisPenner opened 4 years ago

ChrisPenner commented 4 years ago

Possibly related to: https://github.com/sleexyz/hylogen/issues/77 ,

hylide fails to build;

running stack build with:

# stack.yaml
extra-deps:
- hylogen-0.1.5.1@sha256:ff0517b03eb293c322d12da819b981aa028326f1e654eaab971c586825bb1f9b,826
- hylide-0.1.5.1@sha256:230d5b3692dfdb6073764dd6d0a7668c274a9ca571c464ecf7dce4674823957c,1373

Error msg:

hylide         > /private/var/folders/6l/rdh2g5wn41s8vxchngkt02_c0000gn/T/stack1169/hylide-0.1.5.1/app/Main.hs:71:12: error:
hylide         >     • The constructor ‘Modified’ should have 3 arguments, but has been given 2
hylide         >     • In the pattern: Modified _ _
hylide         >       In a case alternative: Modified _ _ -> update
hylide         >       In a stmt of a 'do' block:
hylide         >         case e of
hylide         >           Modified _ _ -> update
hylide         >           _ -> return ()
hylide         >    |
hylide         > 71 |            Modified _ _ -> update
hylide         >    |            ^^^^^^^^^^^^
hylide         >

I'm guessing it's one of hylides dependencies that has upgraded, hylide doesn't specify version numbers for most of its dependencies, and perhaps it should. 😄

ChrisPenner commented 4 years ago

Looks like restricting to fsnotify == 0.2.1.2 worked, but this should probably be restricted in the package deps. Or even better, add hylide to a stackage snapshot 😄

jaysonpowers-zz commented 4 years ago

How do you do that?