Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failing with ghc-8.8.1 MonadFail #23

Open
juhp opened this issue Oct 2, 2019 · 1 comment
Open

failing with ghc-8.8.1 MonadFail #23

juhp opened this issue Oct 2, 2019 · 1 comment

Comments

@juhp
Copy link

juhp commented Oct 2, 2019

For Stackage Nightly:

    Preprocessing test suite 'test-simple' for simple-0.11.3..
    Building test suite 'test-simple' for simple-0.11.3..
    
    <no location info>: warning: [-Wmissing-home-modules]
        These modules are needed for compilation but not listed in your .cabal file's other-modules: 
            Web.Simple.Controller.Trans Web.Simple.Responses
    
    <no location info>: warning: [-Wmissing-home-modules]
        These modules are needed for compilation but not listed in your .cabal file's other-modules: 
            Web.Simple.Controller.Trans Web.Simple.Responses
    Preprocessing library for simple-0.11.3..
    Building library for simple-0.11.3..
    [10 of 10] Compiling Web.Simple.Templates
    
    /var/stackage/work/unpack-dir/unpacked/simple-0.11.3-403f671a4a4d8670cc77557e49a63392abf393e4d092b020574640b534039e4c/src/Web/Simple/Templates.hs:128:17: error:
        • Could not deduce (MonadFail (ControllerT hs m))
            arising from a use of ‘fail’
          from the context: (HasTemplates m hs, MonadIO m)
            bound by the type signature for:
                       defaultGetTemplate :: forall (m :: * -> *) hs.
                                             (HasTemplates m hs, MonadIO m) =>
                                             FilePath -> ControllerT hs m Template
            at src/Web/Simple/Templates.hs:(123,1)-(124,59)
        • In the expression: fail str
          In a case alternative: Left str -> fail str
          In a stmt of a 'do' block:
            case compileTemplate . decodeUtf8 $ contents of
              Left str -> fail str
              Right tmpl -> return tmpl
        |
    128 |     Left str -> fail str
        |                 ^^^^^^^^
juhp added a commit to commercialhaskell/stackage that referenced this issue Oct 2, 2019
@juhp juhp changed the title testsuite failing with ghc-8.8.1 MonadFail failing with ghc-8.8.1 MonadFail Oct 2, 2019
@juhp
Copy link
Author

juhp commented Oct 2, 2019

Actually the even build seems to be failing for Stackage Nightly in the same way

juhp added a commit to commercialhaskell/stackage that referenced this issue Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant