GithubHelp home page GithubHelp logo

uri-templater's Introduction

uri-templater

Use URI templates in Haskell

uri-templater's People

Contributors

iand675 avatar tfausak avatar phadej avatar

Stargazers

Scott Fleischman avatar Elliot Cameron avatar

Watchers

 avatar  avatar Scott Fleischman avatar

uri-templater's Issues

GHC 8 build failure

This can probably be reproduced with stack --resolver nightly build uri-templater trifecta

preprocessing library uri-templater-0.2.0.0...

src/Network/URI/Template/Types.hs:1:157: warning:
    -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
[1 of 5] Compiling Network.URI.Template.Types ( src/Network/URI/Template/Types.hs, dist/build/Network/URI/Template/Types.o )
[2 of 5] Compiling Network.URI.Template.Parser ( src/Network/URI/Template/Parser.hs, dist/build/Network/URI/Template/Parser.o )

src/Network/URI/Template/Parser.hs:98:40: error:
    • Couldn't match type ‘ErrInfo’ with ‘Doc’
      Expected type: Either Doc UriTemplate
        Actual type: Either ErrInfo UriTemplate
    • In the expression: Left err
      In a case alternative: Failure err -> Left err
      In the expression:
        case parseString uriTemplate mempty t of {
          Failure err -> Left err
          Success r -> Right r }

uri-templater-0.3.1.0 fails to build in Stackage Nightly

I tried to reenable uri-templater in current Stackage Nightly (ghc-8.8.1) but it fails with:

--  While building package uri-templater-0.3.1.0 using:
      /var/stackage/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.0.0.0_ghc-8.8.1 --builddir=.stack-work/dist/x86_64-l
inux/Cabal-3.0.0.0 build lib:uri-templater test:test-uri-templates --ghc-options ""
    Process exited with code: ExitFailure 1
    Logs have been written to: /var/stackage/work/unpack-dir/.stack-work/logs/uri-templater-0.3.1.0.log

    Preprocessing library for uri-templater-0.3.1.0..
    Building library for uri-templater-0.3.1.0..
    [2 of 5] Compiling Network.URI.Template.Parser
    
    /var/stackage/work/unpack-dir/unpacked/uri-templater-0.3.1.0-4942d5d2242719f392c061c9c78323a847d3e3d7a5d174922f60c0820c16f73e/sr
c/Network/URI/Template/Parser.hs:104:20: error:
        • Couldn't match type ‘prettyprinter-1.5.1:Data.Text.Prettyprint.Doc.Internal.Doc
                                 prettyprinter-ansi-terminal-1.1.1.2:Data.Text.Prettyprint.Doc.Render.Terminal.Internal.AnsiStyle’
                         with ‘Doc’
          NB: ‘Doc’
                is defined in ‘Text.PrettyPrint.ANSI.Leijen.Internal’
                    in package ‘ansi-wl-pprint-0.6.9’
              ‘prettyprinter-1.5.1:Data.Text.Prettyprint.Doc.Internal.Doc’
                is defined in ‘Data.Text.Prettyprint.Doc.Internal’
                    in package ‘prettyprinter-1.5.1’
          Expected type: Either Doc UriTemplate
            Actual type: Either
                           (prettyprinter-1.5.1:Data.Text.Prettyprint.Doc.Internal.Doc
                              prettyprinter-ansi-terminal-1.1.1.2:Data.Text.Prettyprint.Doc.Render.Terminal.Internal.AnsiStyle)
                           UriTemplate
        • In the expression: Left (_errDoc err)
          In a case alternative: Failure err -> Left (_errDoc err)
          In the expression:
            case parseString uriTemplate mempty t of
              Failure err -> Left (_errDoc err)
              Success r -> Right r
        |
    104 |     Failure err -> Left (_errDoc err)
        |                    ^^^^^^^^^^^^^^^^^^

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.