Use URI templates in Haskell
iand675 / uri-templater Goto Github PK
View Code? Open in Web Editor NEWUse URI templates in Haskell
License: MIT License
Use URI templates in Haskell
License: MIT License
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 }
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)
| ^^^^^^^^^^^^^^^^^^
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.