Giter VIP home page Giter VIP logo

example-servant-minimal's People

Contributors

jkarni avatar proger avatar silky avatar soenkehahn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

example-servant-minimal's Issues

No .cabal file found

During the installation
stack test --fast
No .cabal file found in directory /home/roman/sandbox/example-servant-minimal/

Provide an example cabal file

Did you mean to add the cabal file to the .gitignore? Without it, a naive and inexperienced newcomer (e.g., me) runs into trouble at the second step in the README. Typing "stack test --fast" results in an error message complaining about a missing cabal file.

Cannot compile tests

test/AppSpec.hs:18:1: error:
    • Couldn't match expected type ‘Manager
                                    -> BaseUrl -> ClientM [Item]’
                  with actual type ‘ClientM [Item]’
    • When checking that the inferred type
        getItems :: ClientM [Item]
      is as general as its signature
        getItems :: Manager -> BaseUrl -> ClientM [Item]

test/AppSpec.hs:45:15: error:
    • Couldn't match expected type ‘ExceptT e0 IO a’
                  with actual type ‘ClientM a’
    • In the first argument of ‘runExceptT’, namely
        ‘(action manager baseUrl)’
      In the second argument of ‘(=<<)’, namely
        ‘runExceptT (action manager baseUrl)’
      In the expression:
        either throwIO return =<< runExceptT (action manager baseUrl)
    • Relevant bindings include
        action :: Manager -> BaseUrl -> ClientM a
          (bound at test/AppSpec.hs:44:24)
        try :: Host -> (Manager -> BaseUrl -> ClientM a) -> IO a
          (bound at test/AppSpec.hs:44:1)
Process failed: cabal build -j --ghc-options=-Werror (exit code: 1)

Compilation error when using newer version of servant

I updated tho the latest LTS: 12.24; I then ran into this issue:

/src/App.hs:50:8: error:                                                                                                                        
    * Couldn't match expected type `Handler Item'                                                                                                                                  
                  with actual type `ExceptT ServantErr m0 a0'                                                                                                                      
    * In the expression: throwE err404                                                                                                                                             
      In a case alternative: _ -> throwE err404                                                                                                                                    
      In the expression:                                                                                                                                                           
        \case                                                                                                                                                                      
          0 -> return exampleItem                                                                                                                                                  
          _ -> throwE err404                                                                                                                                                       
   |                                                                                                                                                                               
50 |   _ -> throwE err404                                                                                                                                                          
   |        ^^^^^^^^^^^^^  

test suite is broken

hello, it seems like test suite returns an error because servantError is not available anymore, could you please check it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.