haskell / alex

A lexical analyser generator for Haskell
https://hackage.haskell.org/package/alex
BSD 3-Clause "New" or "Revised" License
297 stars 82 forks source link

Cabal/ Stack build creates bad AlexWrapper-monad-bytestring #73

Closed dfordivam closed 8 years ago

dfordivam commented 8 years ago

The hackage 'cabal' / stackage build looks bad/ broken with respect to 'AlexWrapper-monad-bytestring' These files don't contain the 'instance Applicative'

~/.stack/snapshots/x86_64-linux/lts-3.14/7.10.2/share/x86_64-linux-ghc-7.10.2/alex-3.1.4/AlexWrapper-monad-bytestring ~/.cabal/share/x86_64-linux-ghc-7.8.4/alex-3.1.4/AlexWrapper-monad-bytestring

I tried a local build of alex with the latest source code from github and it does contain the Applicative instance. So I am not sure where the issue might be.

dfordivam commented 8 years ago

I have found a work around and included it here http://stackoverflow.com/questions/33758728/alex-wrappers-hs-no-instance-of-applicative

amnn commented 8 years ago

The monad-bytestring wrapper, as found in the Hackage release also has incorrect type signatures which causes a compilation error too (for me). This has also been fixed in HEAD: #65

simonmar commented 8 years ago

I just uploaded 3.1.5 to Hackage which should fix this.