snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

Hackage version is behind github version, fails to compile with ghc-8.8.1 #215

Closed henrylaxen closed 4 years ago

henrylaxen commented 4 years ago

The title pretty much says it all. On hackage, the file RST.hs line 96 is: fail msg = RST $ \_ _ -> fail msg which causes ghc-8.8.1 to complain with

src/Snap/Snaplet/Internal/RST.hs:96:5: error: ‘fail’ is not a (visible) method of class ‘Monad’

while the github version comments out that line:

-- instance (Monad m) => MonadFail  (RST r s m) where
 --    fail msg = RST $ \_ _ -> fail msg

if you could upload the github version to hackage everything would be tickety-boo Best wishes, Henry Laxen

imalsogreg commented 4 years ago

I believe this was fixed with the release of snap-1.1.3.0 Please reopen if I'm wrong!