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)
| ^^^^^^^^^^^^^^^^^^
I tried to reenable uri-templater in current Stackage Nightly (ghc-8.8.1) but it fails with: