icidasset/shikensu-haskell

Upgrade aeson

icidasset opened this issue · 1 comments

juhp commented

With aeson-2.0.2.0:

shikensu                       > /tmp/stack-945a277279c0ef3e/shikensu-0.3.11/src/Shikensu.hs:143:33: error:
shikensu                       >     • Couldn't match type: Data.HashMap.Internal.HashMap k0 v0
shikensu                       >                      with: Data.Aeson.KeyMap.KeyMap
shikensu                       >                              aeson-2.0.2.0:Data.Aeson.Types.Internal.Value
shikensu                       >       Expected: Metadata
shikensu                       >         Actual: Data.HashMap.Internal.HashMap k0 v0
shikensu                       >     • In the ‘metadata’ field of a record
shikensu                       >       In the expression:
shikensu                       >         Definition
shikensu                       >           {basename = takeBaseName theLocalPath,
shikensu                       >            dirname = takeDirName theLocalPath,
shikensu                       >            extname = takeExtension theLocalPath, pattern = pattern,
shikensu                       >            rootDirname = rootDirname, workingDirname = workingDirname,
shikensu                       >            content = Nothing, metadata = HashMap.empty,
shikensu                       >            parentPath = compileParentPath $ takeDirName theLocalPath,
shikensu                       >            pathToRoot = compilePathToRoot $ takeDirName theLocalPath}
shikensu                       >       In the expression:
shikensu                       >         let
shikensu                       >           workingDirname = commonDirectory pattern
shikensu                       >           rootWorkingDirname = (combine rootDirname workingDirname) <> [...]
shikensu                       >           theAbsolutePath = normalise absolutePath
shikensu                       >           ....
shikensu                       >         in
shikensu                       >           Definition
shikensu                       >             {basename = takeBaseName theLocalPath,
shikensu                       >              dirname = takeDirName theLocalPath,
shikensu                       >              extname = takeExtension theLocalPath, pattern = pattern,
shikensu                       >              rootDirname = rootDirname, workingDirname = workingDirname,
shikensu                       >              content = Nothing, metadata = HashMap.empty,
shikensu                       >              parentPath = compileParentPath $ takeDirName theLocalPath,
shikensu                       >              pathToRoot = compilePathToRoot $ takeDirName theLocalPath}
shikensu                       >     |
shikensu                       > 143 |             , metadata        = HashMap.empty
shikensu                       >     |                                 ^^^^^^^^^^^^^