Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find module ‘Language.Haskell.Lexer’ #45

Open
yellowbean opened this issue Apr 27, 2023 · 0 comments
Open

Could not find module ‘Language.Haskell.Lexer’ #45

yellowbean opened this issue Apr 27, 2023 · 0 comments

Comments

@yellowbean
Copy link

When I try to install via command below in Manjaro LInux :

NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
PRETTY_NAME="Manjaro Linux"
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://manjaro.org/"
BUG_REPORT_URL="https://bugs.manjaro.org/"
LOGO=manjarolinux

cabal version

cabal-install version 3.4.1.0
compiled using version 3.4.1.0 of the Cabal library

cabal install graphmod

Resolving dependencies...
Build profile: -w ghc-9.0.2 -O1
In order, the following will be built (use -v for more details):
 - graphmod-1.4.5.1 (lib) (requires download & build)
 - graphmod-1.4.5.1 (exe:graphmod) (requires download & build)
Downloading  graphmod-1.4.5.1
Downloaded   graphmod-1.4.5.1
Starting     graphmod-1.4.5.1 (lib)
Building     graphmod-1.4.5.1 (lib)

Failed to build graphmod-1.4.5.1.
Build log (
/home/xiaoyu/.cabal/logs/ghc-9.0.2/graphmod-1.4.5.1-ab94c71ef33611c1e0522e967d2d570900bd76be19268b205be344cdcfef35a9.log
):
Configuring library for graphmod-1.4.5.1..
Preprocessing library for graphmod-1.4.5.1..
Building library for graphmod-1.4.5.1..
[1 of 5] Compiling Graphmod.Trie    ( src/Graphmod/Trie.hs, dist/build/Graphmod/Trie.o, dist/build/Graphmod/Trie.dyn_o )
[2 of 5] Compiling Graphmod.Utils   ( src/Graphmod/Utils.hs, dist/build/Graphmod/Utils.o, dist/build/Graphmod/Utils.dyn_o )

src/Graphmod/Utils.hs:18:1: error:
    Could not find module ‘Language.Haskell.Lexer’
    There are files missing in the ‘haskell-lexer-1.1’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
18 | import Language.Haskell.Lexer(lexerPass0,Token(..),PosToken,line)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build graphmod-1.4.5.1 (which is required by exe:graphmod
from graphmod-1.4.5.1). See the build log above for details.

Is there any way to fix this ? Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant