matsubara0507
そのエラーは「sqlite-simpleのバージョンを0.4.16を指定してるけど、stackage の LTS-16.2 の base バージョン 4.13 では使えないよ(<4.13 という条件がある)」って感じ
yamlファイルやcabalファイルについてまだ使い方がちゃんとわかっていないところがあると思うのですが,回答いただければ幸いです.
環境はWindows10でstack2.3.1を使っています.
Haskellでsqliteを扱いたく, sqlite-simple
というライブラリを使おうと,`stack.yaml` の extra-devs
と プロジェクトのcabalファイルに以下のように追加しました.
# stack.yaml # コメント行は省略します resolver: lts-16.2 packages: - . extra-deps: - [email protected]:aeb9502c0004054846829766a08d856122a7e7386077b95048e60edaf9f46b88,2947
# cabalファイル(一部) library hs-source-dirs: src exposed-modules: Lexer, Writer build-depends: base >= 4.7 && < 5 , text , sqlite-simple # この行を追加しました default-language: Haskell2010
Error: While constructing the build plan, the following exceptions were encountered: In the dependencies for sqlite-simple-0.4.16.0: base-4.13.0.0 from stack configuration does not match <4.13 (latest matching version is 4.12.0.0) direct-sqlite must match >=2.3.13 && <2.4, but the stack configuration has no specified version (latest matching version is 2.3.26) semigroups-0.19.1 from stack configuration does not match ==0.18.* (latest matching version is 0.18.5) needed due to AIQRating-0.1.0.0 -> sqlite-simple-0.4.16.0 Some different approaches to resolving this: * Build requires unattainable version of base. Since base is a part of GHC, you most likely need to use a different GHC version with the matching base. Plan construction failed.
dependencies
等々書いてあったため,baseのバージョンが新しすぎて対応していないのかな?などと思い,cabalファイルの build-depends
をいじったりしていたのですが,エラーが全く解決できず困っています.