envparse 0.5.2
Closed this issue · 2 comments
bergmark commented
sydtest 0.15.1.3 @NorfairKing
Building library for sydtest-0.15.1.3..
[ 4 of 27] Compiling Test.Syd.OptParse ( src/Test/Syd/OptParse.hs, /Users/adam.bergmark/repos/3rd/unpacks/sydtest-0.15.1.3/dist-newstyle/build/x86_64-osx/ghc-9.8.2/sydtest-0.15.1.3/noopt/build/Test/Syd/OptParse.o, /Users/adam.bergmark/repos/3rd/unpacks/sydtest-0.15.1.3/dist-newstyle/build/x86_64-osx/ghc-9.8.2/sydtest-0.15.1.3/noopt/build/Test/Syd/OptParse.dyn_o )
src/Test/Syd/OptParse.hs:470:11: error: [GHC-83865]
• Couldn't match type: Env.Parser e0 a0 -> String
with: [Char]
Expected: String
Actual: Env.Parser e0 a0 -> String
• Probable cause: ‘Env.helpDoc’ is applied to too few arguments
In the expression: Env.helpDoc environmentParser
In the first argument of ‘unlines’, namely
‘[Env.helpDoc environmentParser, "", "Configuration file format:",
T.unpack (renderColouredSchemaViaCodec @Configuration)]’
In the expression:
unlines
[Env.helpDoc environmentParser, "", "Configuration file format:",
T.unpack (renderColouredSchemaViaCodec @Configuration)]
|
470 | [ Env.helpDoc environmentParser,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Test/Syd/OptParse.hs:470:23: error: [GHC-83865]
• Couldn't match expected type ‘Int’
with actual type ‘Env.Parser Env.Error Environment’
• In the first argument of ‘Env.helpDoc’, namely
‘environmentParser’
In the expression: Env.helpDoc environmentParser
In the first argument of ‘unlines’, namely
‘[Env.helpDoc environmentParser, "", "Configuration file format:",
T.unpack (renderColouredSchemaViaCodec @Configuration)]’
|
470 | [ Env.helpDoc environmentParser,
| ^^^^^^^^^^^^^^^^^
Error: cabal: Failed to build sydtest-0.15.1.3.
NorfairKing commented
@bergmark looks like my move to opt-env-conf
will have to happen sooner than I expected.
NorfairKing commented
@bergmark sydtest-0.16
is released and doesn't depend on envparse
anymore, but opt-env-conf
and opt-env-conf-test
will need to be added to stackage.