spell-music / csound-expression

Haskell Framework for Electronic Music
320 stars 31 forks source link

Fix compilation on GHC 9 #65

Closed josephcsible closed 2 years ago

josephcsible commented 2 years ago

Fixes spell-music/csound-expression-dynamic#2.

josephcsible commented 2 years ago

As an alternative to moving where isEmptyExp is defined, you could instead leave it where it is, but switch it to use pattern matching, like this:

isEmptyExp :: E -> Bool
isEmptyExp (Fix (RatedExp{ ratedExpDepends = Nothing, ratedExpExp = EmptyExp })) = True
isEmptyExp _ = False
anton-k commented 2 years ago

Thanks for your help!