aslatter / parsec2 Goto Github PK
View Code? Open in Web Editor NEWThis is a maintained fork of version 2.1 of the parsec package, intended to preserve its simplicity and portability.
License: Other
This is a maintained fork of version 2.1 of the parsec package, intended to preserve its simplicity and portability.
License: Other
The MonadFail proposal was implemented in ghc 8.8, resulting in
Text/ParserCombinators/Parsec/Prim.hs:265:3: error:
`fail' is not a (visible) method of class `Monad'
See the logs on the matrix builder: https://matrix.hackage.haskell.org/#/package/parsec2/
This should be easy to fix with conditional compilation (CPP). Something like this:
Replace
instance Monad (GenParser tok st) where
return x = parsecReturn x
p >>= f = parsecBind p f
fail msg = parsecFail msg
by
instance Monad (GenParser tok st) where
return x = parsecReturn x
p >>= f = parsecBind p f
#if !MIN_VERSION_base(4,11,0)
-- Monad(fail) was removed in GHC 8.8.1
fail msg = parsecFail msg
#else
instance MonadFail (GenParser tok st) where
fail msg = parsecFail msg
#endif
and add
{-# LANGUAGE CPP #-}
to the top of the file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.