Skip to content

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

Description

@yellowbean

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 !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions