lambdacube3d / lambdacube-compiler

LambdaCube 3D is a Haskell-like purely functional language for GPU. Try it out:
http://lambdacube3d.com
Other
85 stars 9 forks source link

P.MonadParsec e s (RWST r w st m) instance conflict with megaparsec #11

Closed deepfire closed 6 years ago

deepfire commented 7 years ago

megaparsec now defines: https://github.com/mrkkrp/megaparsec/blob/master/Text/Megaparsec/Prim.hs#L1242 ..which results in:

[ 2 of 14] Compiling LambdaCube.Compiler.Utils ( src/LambdaCube/Compiler/Utils.hs, dist/build/LambdaCube/Compiler/Utils.o )

src/LambdaCube/Compiler/Utils.hs:119:10: error:
    Duplicate instance declarations:
      instance (Monoid w, P.MonadParsec e s m) =>
               P.MonadParsec e s (RWST r w st m)
        -- Defined at src/LambdaCube/Compiler/Utils.hs:119:10
      instance (Monoid w, P.MonadParsec e s m) =>
               P.MonadParsec e s (RWST r w st m)
        -- Defined in ‘Text.Megaparsec.Prim’
builder for ‘/nix/store/5c2xm051ah3x34aj5pq5pgaafp5wj4d2-lambdacube-compiler-0.6.0.1.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/bg50i98xjf0rhcqsidk89bqpz2dm5xip-ghc-8.0.2-with-packages.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/bg50i98xjf0rhcqsidk89bqpz2dm5xip-ghc-8.0.2-with-packages.drv’ failed
deepfire commented 7 years ago

Specifically, the conflicting instance was added in https://github.com/mrkkrp/megaparsec/commit/dd2386aafc6b23553dda3ae0bc97cba80cf4124a#diff-7762a64005e439e93f28d5c9a983baa9

deepfire commented 6 years ago

No longer the case on latest master.