You are not logged in.

#1 2021-02-19 11:14:10

newbbbbbbbb
Member
Registered: 2021-02-19
Posts: 3

How can i fix this 'GHC' path problem?

I can not install package use cabal.

Following is what package about Haskell i installed.

☯~☯ pacman -Ss haskell | grep install
community/alex 3.2.6-3 [installed]
community/ghc 8.10.4-1 [installed]
community/ghc-libs 8.10.4-1 [installed]
community/ghc-static 8.10.4-1 [installed]
community/happy 1.20.0-3 [installed]
community/haskell-aeson 1.5.5.1-24 [installed]
community/haskell-ansi-terminal 0.11-80 [installed]
community/haskell-assoc 1.0.2-59 [installed]
community/haskell-async 2.2.3-3 [installed]
community/haskell-attoparsec 0.13.2.5-5 [installed]
community/haskell-base-compat 0.11.2-4 [installed]
community/haskell-base-compat-batteries 0.11.2-73 [installed]
community/haskell-base-orphans 0.8.4-62 [installed]
community/haskell-base16-bytestring 1.0.1.0-28 [installed]
community/haskell-base64-bytestring 1.2.0.1-35 [installed]
community/haskell-bifunctors 5.5.10-30 [installed]
community/haskell-cabal-install-parsers 0.4-54
    Utilities to work with cabal-install files
community/haskell-clock 0.8.2-13 [installed]
community/haskell-cmdargs 0.10.20-16 [installed]
community/haskell-colour 2.3.5-138 [installed]
community/haskell-comonad 5.0.8-45 [installed]
community/haskell-conduit 1.3.4-38 [installed]
community/haskell-cpphs 1.20.9.1-7 [installed]
community/haskell-cryptohash-sha256 0.11.102.0-13 [installed]
community/haskell-data-default 0.7.1.1-119 [installed]
community/haskell-data-default-class 0.1.2.0-21 [installed]
community/haskell-data-default-instances-containers 0.0.1-33 [installed]
community/haskell-data-default-instances-dlist 0.0.1-132 [installed]
community/haskell-data-default-instances-old-locale 0.0.1-33 [installed]
community/haskell-data-fix 0.3.1-7 [installed]
community/haskell-distributive 0.6.2.1-46 [installed]
community/haskell-dlist 1.0-55 [installed]
community/haskell-echo 0.1.3-19 [installed]
community/haskell-ed25519 0.0.5.0-21 [installed]
community/haskell-edit-distance 0.2.2.1-75 [installed]
community/haskell-extra 1.7.9-33 [installed]
community/haskell-file-embed 0.0.13.0-3 [installed]
community/haskell-filepattern 0.1.2-100 [installed]
community/haskell-ghc-lib-parser-ex 8.10.0.17-33 [installed]
    Knowledge of GHC's installation directories
    Access cabal-install's Hackage database via Data.Map
community/haskell-hackage-security 0.6.0.1-174 [installed]
community/haskell-haddock-library 1.9.0-104 [installed]
community/haskell-hashable 1.3.0.0-97 [installed]
community/haskell-hscolour 1.24.4-18 [installed]
community/haskell-http 4000.3.15-105 [installed]
community/haskell-indexed-traversable 0.1.1-3 [installed]
community/haskell-integer-logarithms 1.0.3.1-3 [installed]
community/haskell-libyaml 0.1.2-111 [installed]
community/haskell-lukko 0.1.1.2-75 [installed]
community/haskell-mono-traversable 1.0.15.1-109 [installed]
community/haskell-network 3.1.2.1-33 [installed]
community/haskell-network-uri 2.6.4.0-3 [installed]
community/haskell-old-locale 1.0.0.7-27 [installed]
community/haskell-polyparse 1.13-8 [installed]
community/haskell-primitive 0.7.1.0-92 [installed]
community/haskell-random 1.2.0-155 [installed]
community/haskell-refact 0.3.0.2-22 [installed]
community/haskell-resolv 0.1.2.0-68 [installed]
community/haskell-resourcet 1.2.4.2-63 [installed]
community/haskell-scientific 0.3.6.2-85 [installed]
community/haskell-split 0.2.3.4-113 [installed]
community/haskell-splitmix 0.1.0.3-68 [installed]
community/haskell-strict 0.4.0.1-33 [installed]
community/haskell-syb 0.7.2.1-17 [installed]
community/haskell-tagged 0.8.6.1-2 [installed]
community/haskell-tar 0.5.1.1-40 [installed]
community/haskell-th-abstraction 0.4.2.0-2 [installed]
community/haskell-th-compat 0.1.1-5 [installed]
community/haskell-these 1.1.1.1-60 [installed]
community/haskell-time-compat 1.9.5-33 [installed]
community/haskell-transformers-compat 0.6.6-3 [installed]
community/haskell-uniplate 1.6.13-37 [installed]
community/haskell-unliftio-core 0.2.0.1-6 [installed]
community/haskell-unordered-containers 0.2.13.0-44 [installed]
community/haskell-utf8-string 1.0.2-18 [installed]
community/haskell-uuid-types 1.0.3-90 [installed]
community/haskell-vector 0.12.2.0-24 [installed]
community/haskell-vector-algorithms 0.8.0.4-33 [installed]
community/haskell-yaml 0.11.5.0-83 [installed]
community/haskell-zlib 0.6.2.2-5 [installed]

The version of cabal and ghc.

☯~☯ cabal --version
cabal-install version 3.2.0.0
compiled using version 3.2.1.0 of the Cabal library 
2021-02-19 Friday  7:02 PM
☯~☯ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.10.4

Following is the information of cabal install pandoc

Resolving dependencies...
Build profile: -w ghc-8.10.4 -O1
In order, the following will be built (use -v for more details):
 - Glob-0.10.1 (lib) (requires build)
 - JuicyPixels-3.3.5 (lib) (requires build)
 - case-insensitive-1.2.1.0 (lib) (requires build)
 - commonmark-extensions-0.2.0.4 (lib) (requires build)
 - cookie-0.4.5 (lib) (requires build)
 - hourglass-0.2.12 (lib) (requires build)
 - hslua-1.3.0.1 (lib) (requires build)
 - hxt-charproperties-9.5.0.0 (lib) (requires build)
 - jira-wiki-markup-1.3.3 (lib) (requires build)
 - memory-0.15.0 (lib) (requires build)
 - mime-types-0.1.0.9 (lib) (requires build)
 - random-1.1 (lib) (requires build)
 - rfc5051-0.2 (lib) (requires build)
 - safe-0.3.19 (lib) (requires build)
 - socks-0.6.1 (lib) (requires build)
 - tagsoup-0.14.8 (lib) (requires build)
 - typed-process-0.2.6.0 (lib) (requires build)
 - unicode-transforms-0.3.7.1 (lib) (requires build)
 - xml-1.3.14 (lib:xml) (requires build)
 - xml-types-0.3.8 (lib) (requires build)
 - zip-archive-0.4.1 (lib) (requires build)
 - http-types-0.12.3 (lib) (requires build)
 - hslua-module-text-0.3.0.1 (lib) (requires build)
 - hxt-unicode-9.0.2.4 (lib:hxt-unicode) (requires build)
 - hxt-regex-xmlschema-9.2.0.7 (lib) (requires build)
 - pem-0.2.4 (lib) (requires build)
 - cryptonite-0.28 (lib) (requires build)
 - asn1-types-0.3.4 (lib:asn1-types) (requires build)
 - uuid-types-1.0.4 (lib) (requires build)
 - temporary-1.3 (lib) (requires build)
 - streaming-commons-0.2.2.1 (lib) (requires build)
 - QuickCheck-2.14.2 (lib) (requires build)
 - errors-2.3.0 (lib) (requires build)
 - doclayout-0.3 (lib) (requires build)
 - hxt-9.3.1.21 (lib) (requires build)
 - asn1-encoding-0.9.6 (lib) (requires build)
 - aeson-1.5.5.1 (lib) (requires build)
 - hslua-module-system-0.2.2.1 (lib) (requires build)
 - http-client-0.7.5 (lib) (requires build)
 - conduit-extra-1.3.5 (lib) (requires build)
 - text-conversions-0.3.1 (lib) (requires build)
 - asn1-parse-0.9.5 (lib:asn1-parse) (requires build)
 - skylighting-core-0.10.2 (lib) (requires build)
 - pandoc-types-1.22 (lib) (requires build)
 - ipynb-0.1.0.1 (lib) (requires build)
 - aeson-pretty-0.8.8 (lib) (requires build)
 - xml-conduit-1.9.0.0 (lib) (requires build)
 - doctemplates-0.9 (lib) (requires build)
 - x509-1.7.5 (lib) (requires build)
 - skylighting-0.10.2 (lib) (requires build)
 - texmath-0.12.1.1 (lib) (requires build)
 - commonmark-pandoc-0.2.0.1 (lib) (requires build)
 - citeproc-0.3.0.7 (lib) (requires build)
 - x509-store-1.6.7 (lib) (requires build)
 - x509-validation-1.6.11 (lib) (requires build)
 - x509-system-1.6.6 (lib) (requires build)
 - tls-1.5.5 (lib) (requires build)
 - connection-0.3.1 (lib:connection) (requires build)
 - http-client-tls-0.3.5.3 (lib) (requires build)
 - pandoc-2.11.4 (lib) (requires build)
 - pandoc-2.11.4 (exe:pandoc) (requires build)
Starting     Glob-0.10.1 (lib)
Starting     case-insensitive-1.2.1.0 (lib)
Starting     JuicyPixels-3.3.5 (lib)
Starting     commonmark-extensions-0.2.0.4 (lib)
Building     JuicyPixels-3.3.5 (lib)
Building     Glob-0.10.1 (lib)
Building     case-insensitive-1.2.1.0 (lib)
Building     commonmark-extensions-0.2.0.4 (lib)
Starting     cookie-0.4.5 (lib)
Building     cookie-0.4.5 (lib)
Installing   commonmark-extensions-0.2.0.4 (lib)
Completed    commonmark-extensions-0.2.0.4 (lib)

Failed to build Glob-0.10.1.
Build log (
/home/alonzo/.cabal/logs/ghc-8.10.4/Glob-0.10.1-f51fae47bfbc4b08e794943936f00c2d4ccc2333a41c53dd4c40fa44bb9d8be8.log
):
Configuring library for Glob-0.10.1..
Preprocessing library for Glob-0.10.1..
Building library for Glob-0.10.1..
[1 of 7] Compiling System.FilePath.Glob.Utils ( System/FilePath/Glob/Utils.hs, dist/build/System/FilePath/Glob/Utils.o, dist/build/System/FilePath/Glob/Utils.dyn_o )

System/FilePath/Glob/Utils.hs:19:1: error:
    Could not find module ‘Data.DList’
    There are files missing in the ‘dlist-1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
19 | import qualified Data.DList as DL
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

System/FilePath/Glob/Utils.hs:20:1: error:
    Could not find module ‘Data.DList’
    There are files missing in the ‘dlist-1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
20 | import Data.DList       (DList)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Failed to build JuicyPixels-3.3.5.
Build log (
/home/alonzo/.cabal/logs/ghc-8.10.4/JuicyPixels-3.3.5-8ae7522042de3bd275261e1497e5ce90610330cc52371357b0c23bb2dc09cda4.log
):
Configuring library for JuicyPixels-3.3.5..
Preprocessing library for JuicyPixels-3.3.5..
Building library for JuicyPixels-3.3.5..
[ 1 of 30] Compiling Codec.Picture.InternalHelper ( src/Codec/Picture/InternalHelper.hs, dist/build/Codec/Picture/InternalHelper.o, dist/build/Codec/Picture/InternalHelper.dyn_o )
[ 2 of 30] Compiling Codec.Picture.Metadata.Exif ( src/Codec/Picture/Metadata/Exif.hs, dist/build/Codec/Picture/Metadata/Exif.o, dist/build/Codec/Picture/Metadata/Exif.dyn_o )

src/Codec/Picture/Metadata/Exif.hs:15:1: error:
    Could not find module ‘Data.Vector’
    There are files missing in the ‘vector-0.12.2.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
15 | import qualified Data.Vector as V
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Failed to build case-insensitive-1.2.1.0.
Build log (
/home/alonzo/.cabal/logs/ghc-8.10.4/case-insensitive-1.2.1.0-2a8314123e6cf1b955b492f502ffaea8db7bb8d2392e0ffbf6d8f39f38b0493c.log
):
Configuring library for case-insensitive-1.2.1.0..
Preprocessing library for case-insensitive-1.2.1.0..
Building library for case-insensitive-1.2.1.0..
[1 of 3] Compiling Data.CaseInsensitive.Internal ( Data/CaseInsensitive/Internal.hs, dist/build/Data/CaseInsensitive/Internal.o, dist/build/Data/CaseInsensitive/Internal.dyn_o )

Data/CaseInsensitive/Internal.hs:69:1: error:
    Could not find module ‘Data.Hashable’
    There are files missing in the ‘hashable-1.3.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
69 | import Data.Hashable ( Hashable, hashWithSalt )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Failed to build cookie-0.4.5.
Build log (
/home/alonzo/.cabal/logs/ghc-8.10.4/cookie-0.4.5-d9fc624c1232d5a662a27603192aa0deb8890c8bb67f1158ce4ad818dcd299fb.log
):
Configuring library for cookie-0.4.5..
Preprocessing library for cookie-0.4.5..
Building library for cookie-0.4.5..
[1 of 1] Compiling Web.Cookie       ( Web/Cookie.hs, dist/build/Web/Cookie.o, dist/build/Web/Cookie.dyn_o )

Web/Cookie.hs:53:1: error:
    Could not find module ‘Data.Default.Class’
    There are files missing in the ‘data-default-class-0.1.2.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
53 | import Data.Default.Class (Default (def))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build Glob-0.10.1 (which is required by exe:pandoc from
pandoc-2.11.4). See the build log above for details.
Failed to build JuicyPixels-3.3.5 (which is required by exe:pandoc from
pandoc-2.11.4). See the build log above for details.
Failed to build case-insensitive-1.2.1.0 (which is required by exe:pandoc from
pandoc-2.11.4). See the build log above for details.
Failed to build cookie-0.4.5 (which is required by exe:pandoc from
pandoc-2.11.4). See the build log above for details.

Help me fix this plz.
Thanks!

Offline

#2 2021-02-19 11:15:26

newbbbbbbbb
Member
Registered: 2021-02-19
Posts: 3

Re: How can i fix this 'GHC' path problem?

Also this information:

☯~☯ cabal list --installed 
* Cabal
    Synopsis: A framework for packaging Haskell software
    Default available version: 3.4.0.0
    Installed versions: 3.2.1.0
    Homepage: http://www.haskell.org/cabal/
    License:  BSD3

* HTTP
    Synopsis: A library for client-side HTTP
    Default available version: 4000.3.15
    Installed versions: 4000.3.15
    Homepage: https://github.com/haskell/HTTP
    License:  BSD3

* aeson
    Synopsis: Fast JSON parsing and encoding
    Default available version: 1.5.5.1
    Installed versions: 1.5.5.1
    Homepage: https://github.com/haskell/aeson
    License:  BSD3

* ansi-terminal
    Synopsis: Simple ANSI terminal support, with Windows compatibility
    Default available version: 0.11
    Installed versions: 0.11
    Homepage: https://github.com/feuerbach/ansi-terminal
    License:  BSD3

* array
    Synopsis: Mutable and immutable arrays
    Default available version: 0.5.4.0
    Installed versions: 0.5.4.0
    License:  BSD3

* assoc
    Synopsis: swap and assoc: Symmetric and Semigroupy Bifunctors
    Default available version: 1.0.2
    Installed versions: 1.0.2
    License:  BSD3

* async
    Synopsis: Run IO operations asynchronously and wait for their results
    Default available version: 2.2.3
    Installed versions: 2.2.3
    Homepage: https://github.com/simonmar/async
    License:  BSD3

* attoparsec
    Synopsis: Fast combinator parsing for bytestrings and text
    Default available version: 0.13.2.5
    Installed versions: 0.13.2.5
    Homepage: https://github.com/bgamari/attoparsec
    License:  BSD3

* base
    Synopsis: Basic libraries
    Default available version: 4.14.1.0
    Installed versions: 4.14.1.0
    License:  BSD-3-Clause

* base-compat
    Synopsis: A compatibility layer for base
    Default available version: 0.11.2
    Installed versions: 0.11.2
    License:  MIT

* base-compat-batteries
    Synopsis: base-compat with extra batteries
    Default available version: 0.11.2
    Installed versions: 0.11.2
    License:  MIT

* base-orphans
    Synopsis: Backwards-compatible orphan instances for base
    Default available version: 0.8.4
    Installed versions: 0.8.4
    Homepage: https://github.com/haskell-compat/base-orphans#readme
    License:  MIT

* base16-bytestring
    Synopsis: RFC 4648-compliant Base16 encodings for ByteStrings
    Default available version: 1.0.1.0
    Installed versions: 1.0.1.0
    Homepage: http://github.com/haskell/base16-bytestring
    License:  BSD3

* base64-bytestring
    Synopsis: Fast base64 encoding and decoding for ByteStrings
    Default available version: 1.2.0.1
    Installed versions: 1.2.0.1
    Homepage: https://github.com/haskell/base64-bytestring
    License:  BSD3

* bifunctors
    Synopsis: Bifunctors
    Default available version: 5.5.10
    Installed versions: 5.5.10
    Homepage: http://github.com/ekmett/bifunctors/
    License:  BSD3

* binary
    Synopsis: Binary serialisation for Haskell values using lazy ByteStrings
    Default available version: 0.8.8.0
    Installed versions: 0.8.8.0
    Homepage: https://github.com/kolmodin/binary
    License:  BSD3

* bytestring
    Synopsis: Fast, compact, strict and lazy byte strings with a list interface
    Default available version: 0.11.1.0
    Installed versions: 0.10.12.0
    Homepage: https://github.com/haskell/bytestring
    License:  BSD3

* clock
    Synopsis: High-resolution clock functions: monotonic, realtime, cputime.
    Default available version: 0.8.2
    Installed versions: 0.8.2
    Homepage: https://github.com/corsis/clock
    License:  BSD3

* cmdargs
    Synopsis: Command line argument processing
    Default available version: 0.10.21
    Installed versions: 0.10.20
    Homepage: https://github.com/ndmitchell/cmdargs#readme
    License:  BSD3

* colour
    Synopsis: A model for human colour/color perception
    Default available version: 2.3.5
    Installed versions: 2.3.5
    Homepage: http://www.haskell.org/haskellwiki/Colour
    License:  MIT

* comonad
    Synopsis: Comonads
    Default available version: 5.0.8
    Installed versions: 5.0.8
    Homepage: http://github.com/ekmett/comonad/
    License:  BSD3

* conduit
    Synopsis: Streaming data processing library.
    Default available version: 1.3.4
    Installed versions: 1.3.4
    Homepage: http://github.com/snoyberg/conduit
    License:  MIT

* containers
    Synopsis: Assorted concrete container types
    Default available version: 0.6.4.1
    Installed versions: 0.6.2.1
    License:  BSD3

* cpphs
    Synopsis: A liberalised re-implementation of cpp, the C pre-processor.
    Default available version: 1.20.9.1
    Installed versions: 1.20.9.1
    Homepage: http://projects.haskell.org/cpphs/
    License:  LGPL

* cryptohash-sha256
    Synopsis: Fast, pure and practical SHA-256 implementation
    Default available version: 0.11.102.0
    Installed versions: 0.11.102.0
    Homepage: https://github.com/hvr/cryptohash-sha256
    License:  BSD3

* data-default
    Synopsis: A class for types with a default value
    Default available version: 0.7.1.1
    Installed versions: 0.7.1.1
    License:  BSD3

* data-default-class
    Synopsis: A class for types with a default value
    Default available version: 0.1.2.0
    Installed versions: 0.1.2.0
    License:  BSD3

* data-default-instances-containers
    Synopsis: Default instances for types in containers
    Default available version: 0.0.1
    Installed versions: 0.0.1
    License:  BSD3

* data-default-instances-dlist
    Synopsis: Default instances for types in dlist
    Default available version: 0.0.1
    Installed versions: 0.0.1
    License:  BSD3

* data-default-instances-old-locale
    Synopsis: Default instances for types in old-locale
    Default available version: 0.0.1
    Installed versions: 0.0.1
    License:  BSD3

* data-fix
    Synopsis: Fixpoint data types
    Default available version: 0.3.1
    Installed versions: 0.3.1
    Homepage: https://github.com/spell-music/data-fix
    License:  BSD3

* deepseq
    Synopsis: Deep evaluation of data structures
    Default available version: 1.4.5.0
    Installed versions: 1.4.4.0
    License:  BSD3

* directory
    Synopsis: Platform-agnostic library for filesystem operations
    Default available version: 1.3.6.1
    Installed versions: 1.3.6.0
    License:  BSD3

* distributive
    Synopsis: Distributive functors -- Dual to Traversable
    Default available version: 0.6.2.1
    Installed versions: 0.6.2.1
    Homepage: http://github.com/ekmett/distributive/
    License:  BSD3

* dlist
    Synopsis: Difference lists
    Default available version: 1.0
    Installed versions: 1.0
    Homepage: https://github.com/spl/dlist
    License:  BSD3

* echo
    Synopsis: A cross-platform, cross-console way to handle echoing terminal
              input
    Default available version: 0.1.4
    Installed versions: 0.1.3
    Homepage: https://github.com/RyanGlScott/echo
    License:  BSD3

* ed25519
    Synopsis: Ed25519 cryptographic signatures
    Default available version: 0.0.5.0
    Installed versions: 0.0.5.0
    Homepage: http://thoughtpolice.github.com/hs-ed25519
    License:  MIT

* edit-distance
    Synopsis: Levenshtein and restricted Damerau-Levenshtein edit distances
    Default available version: 0.2.2.1
    Installed versions: 0.2.2.1
    Homepage: http://github.com/phadej/edit-distance
    License:  BSD3

* exceptions
    Synopsis: Extensible optionally-pure exceptions
    Default available version: 0.10.4
    Installed versions: 0.10.4
    Homepage: http://github.com/ekmett/exceptions/
    License:  BSD3

* extra
    Synopsis: Extra functions I use.
    Default available version: 1.7.9
    Installed versions: 1.7.9
    Homepage: https://github.com/ndmitchell/extra#readme
    License:  BSD3

* file-embed
    Synopsis: Use Template Haskell to embed file contents directly.
    Default available version: 0.0.13.0
    Installed versions: 0.0.13.0
    Homepage: https://github.com/snoyberg/file-embed
    License:  BSD3

* filepath
    Synopsis: Library for manipulating FilePaths in a cross platform way.
    Default available version: 1.4.2.1
    Installed versions: 1.4.2.1
    Homepage: https://github.com/haskell/filepath#readme
    License:  BSD3

* filepattern
    Synopsis: File path glob-like matching
    Default available version: 0.1.2
    Installed versions: 0.1.2
    Homepage: https://github.com/ndmitchell/filepattern#readme
    License:  BSD3

* ghc
    Synopsis: The GHC API
    Default available version: 8.10.2
    Installed versions: 8.10.4
    Homepage: http://www.haskell.org/ghc/
    License:  BSD-3-Clause

* ghc-boot
    Synopsis: Shared functionality between GHC and its boot libraries
    Default available version: 8.8.3
    Installed versions: 8.10.4
    License:  BSD3

* ghc-boot-th
    Synopsis: Shared functionality between GHC and the `template-haskell`
              library
    Default available version: 8.10.2
    Installed versions: 8.10.4
    License:  BSD3

* ghc-compact
    Synopsis: In memory storage of deeply evaluated data structure
    Default available version: 0.1.0.0
    Installed versions: 0.1.0.0
    License:  BSD3

* ghc-heap
    Default available version: [ Not available from any configured repository ]
    Installed versions: 8.10.4
    License:  BSD-3-Clause

* ghc-lib-parser-ex
    Synopsis: Algorithms on GHC parse trees
    Default available version: 9.0.0.3
    Installed versions: 8.10.0.17
    Homepage: https://github.com/shayne-fletcher/ghc-lib-parser-ex#readme
    License:  BSD3

* ghc-prim
    Synopsis: GHC primitives
    Default available version: 0.6.1
    Installed versions: 0.6.1
    License:  BSD-3-Clause

* ghci
    Synopsis: The library supporting GHC's interactive interpreter
    Default available version: 8.10.2
    Installed versions: 8.10.4
    License:  BSD3

* hackage-security
    Synopsis: Hackage security library
    Default available version: 0.6.0.1
    Installed versions: 0.6.0.1
    Homepage: https://github.com/haskell/hackage-security
    License:  BSD3

* haddock-library
    Synopsis: Library exposing some functionality of Haddock.
    Default available version: 1.9.0
    Installed versions: 1.9.0
    Homepage: http://www.haskell.org/haddock/
    License:  BSD-2-Clause

* hashable
    Synopsis: A class for types that can be converted to a hash value
    Default available version: 1.3.1.0
    Installed versions: 1.3.0.0
    Homepage: http://github.com/haskell-unordered-containers/hashable
    License:  BSD3

* haskeline
    Synopsis: A command-line interface for user input, written in Haskell.
    Default available version: 0.8.1.1
    Installed versions: 0.8.0.1
    Homepage: https://github.com/judah/haskeline
    License:  BSD3

* hlint
    Synopsis: Source code suggestions
    Default available version: 3.2.7
    Installed versions: 3.2.7
    Homepage: https://github.com/ndmitchell/hlint#readme
    License:  BSD3

* hpc
    Synopsis: Code Coverage Library for Haskell
    Default available version: 0.6.0.3
    Installed versions: 0.6.1.0
    License:  BSD3

* hscolour
    Synopsis: Colourise Haskell code.
    Default available version: 1.24.4
    Installed versions: 1.24.4
    Homepage: http://code.haskell.org/~malcolm/hscolour/
    License:  LGPL

* indexed-traversable
    Synopsis: FunctorWithIndex, FoldableWithIndex, TraversableWithIndex
    Default available version: 0.1.1
    Installed versions: 0.1.1
    License:  BSD2

* integer-gmp
    Synopsis: Integer library based on GMP
    Default available version: 1.0.3.0
    Installed versions: 1.0.3.0
    License:  BSD3

* integer-logarithms
    Synopsis: Integer logarithms.
    Default available version: 1.0.3.1
    Installed versions: 1.0.3.1
    Homepage: https://github.com/haskellari/integer-logarithms
    License:  MIT

* libiserv
    Default available version: [ Not available from any configured repository ]
    Installed versions: 8.10.4
    License:  BSD-3-Clause

* libyaml
    Synopsis: Low-level, streaming YAML interface.
    Default available version: 0.1.2
    Installed versions: 0.1.2
    Homepage: https://github.com/snoyberg/yaml#readme
    License:  BSD3

* lukko
    Synopsis: File locking
    Default available version: 0.1.1.3
    Installed versions: 0.1.1.2
    License:  GPL-2.0-or-later AND BSD-3-Clause

* mono-traversable
    Synopsis: Type classes for mapping, folding, and traversing monomorphic
              containers
    Default available version: 1.0.15.1
    Installed versions: 1.0.15.1
    Homepage: https://github.com/snoyberg/mono-traversable#readme
    License:  MIT

* mtl
    Synopsis: Monad classes, using functional dependencies
    Default available version: 2.2.2
    Installed versions: 2.2.2
    Homepage: http://github.com/haskell/mtl
    License:  BSD3

* network
    Synopsis: Low-level networking interface
    Default available version: 3.1.2.1
    Installed versions: 3.1.2.1
    Homepage: https://github.com/haskell/network
    License:  BSD3

* network-uri
    Synopsis: URI manipulation
    Default available version: 2.6.4.1
    Installed versions: 2.6.4.0
    Homepage: https://github.com/haskell/network-uri
    License:  BSD3

* old-locale
    Synopsis: locale library
    Default available version: 1.0.0.7
    Installed versions: 1.0.0.7
    License:  BSD3

* parsec
    Synopsis: Monadic parser combinators
    Default available version: 3.1.14.0
    Installed versions: 3.1.14.0
    Homepage: https://github.com/haskell/parsec
    License:  BSD3

* polyparse
    Synopsis: A variety of alternative parser combinator libraries.
    Default available version: 1.13
    Installed versions: 1.13
    Homepage: http://code.haskell.org/~malcolm/polyparse/
    License:  LGPL

* pretty
    Synopsis: Pretty-printing library
    Default available version: 1.1.3.6
    Installed versions: 1.1.3.6
    Homepage: http://github.com/haskell/pretty
    License:  BSD3

* primitive
    Synopsis: Primitive memory-related operations
    Default available version: 0.7.1.0
    Installed versions: 0.7.1.0
    Homepage: https://github.com/haskell/primitive
    License:  BSD-3-Clause

* process
    Synopsis: Process libraries
    Default available version: 1.6.11.0
    Installed versions: 1.6.9.0
    License:  BSD3

* random
    Synopsis: Pseudo-random number generation
    Default available version: 1.2.0
    Installed versions: 1.2.0
    License:  BSD3

* refact
    Synopsis: Specify refactorings to perform with apply-refact
    Default available version: 0.3.0.2
    Installed versions: 0.3.0.2
    License:  BSD3

* resolv
    Synopsis: Domain Name Service (DNS) lookup via the libresolv standard
              library routines
    Default available version: 0.1.2.0
    Installed versions: 0.1.2.0
    License:  GPL-2.0-or-later

* resourcet
    Synopsis: Deterministic allocation and freeing of scarce resources.
    Default available version: 1.2.4.2
    Installed versions: 1.2.4.2
    Homepage: http://github.com/snoyberg/conduit
    License:  BSD3

* rts
    Default available version: [ Not available from any configured repository ]
    Installed versions: 1.0
    License:  BSD-3-Clause

* scientific
    Synopsis: Numbers represented using scientific notation
    Default available version: 0.3.6.2
    Installed versions: 0.3.6.2
    Homepage: https://github.com/basvandijk/scientific
    License:  BSD3

* split
    Synopsis: Combinator library for splitting lists.
    Default available version: 0.2.3.4
    Installed versions: 0.2.3.4
    License:  BSD3

* splitmix
    Synopsis: Fast Splittable PRNG
    Default available version: 0.1.0.3
    Installed versions: 0.1.0.3
    License:  BSD3

* stm
    Synopsis: Software Transactional Memory
    Default available version: 2.5.0.0
    Installed versions: 2.5.0.0
    Homepage: https://wiki.haskell.org/Software_transactional_memory
    License:  BSD3

* strict
    Synopsis: Strict data types and String IO.
    Default available version: 0.4.0.1
    Installed versions: 0.4.0.1
    Homepage: https://github.com/haskell-strict/strict
    License:  BSD3

* syb
    Synopsis: Scrap Your Boilerplate
    Default available version: 0.7.2.1
    Installed versions: 0.7.2.1
    Homepage: http://www.cs.uu.nl/wiki/GenericProgramming/SYB
    License:  BSD3

* tagged
    Synopsis: Haskell 98 phantom types to avoid unsafely passing dummy arguments
    Default available version: 0.8.6.1
    Installed versions: 0.8.6.1
    Homepage: http://github.com/ekmett/tagged
    License:  BSD3

* tar
    Synopsis: Reading, writing and manipulating ".tar" archive files.
    Default available version: 0.5.1.1
    Installed versions: 0.5.1.1
    License:  BSD3

* template-haskell
    Synopsis: Support library for Template Haskell
    Default available version: 2.16.0.0
    Installed versions: 2.16.0.0
    License:  BSD3

* terminfo
    Synopsis: Haskell bindings to the terminfo library.
    Default available version: 0.4.1.4
    Installed versions: 0.4.1.4
    Homepage: https://github.com/judah/terminfo
    License:  BSD3

* text
    Synopsis: An efficient packed Unicode text type.
    Default available version: 1.2.4.1
    Installed versions: 1.2.4.1
    Homepage: https://github.com/haskell/text
    License:  BSD2

* th-abstraction
    Synopsis: Nicer interface for reified information about data types
    Default available version: 0.4.2.0
    Installed versions: 0.4.2.0
    Homepage: https://github.com/glguy/th-abstraction
    License:  ISC

* th-compat
    Synopsis: Backward- (and forward-)compatible Quote and Code types
    Default available version: 0.1.1
    Installed versions: 0.1.1
    Homepage: https://github.com/haskell-compat/th-compat
    License:  BSD3

* these
    Synopsis: An either-or-both data type.
    Default available version: 1.1.1.1
    Installed versions: 1.1.1.1
    Homepage: https://github.com/isomorphism/these
    License:  BSD3

* time
    Synopsis: A time library
    Default available version: 1.11.1.1
    Installed versions: 1.9.3
    Homepage: https://github.com/haskell/time
    License:  BSD3

* time-compat
    Synopsis: Compatibility package for time
    Default available version: 1.9.5
    Installed versions: 1.9.5
    Homepage: https://github.com/haskellari/time-compat
    License:  BSD3

* transformers
    Synopsis: Concrete functor and monad transformers
    Default available version: 0.5.6.2
    Installed versions: 0.5.6.2
    License:  BSD3

* transformers-compat
    Synopsis: A small compatibility shim for the transformers library
    Default available version: 0.6.6
    Installed versions: 0.6.6
    Homepage: http://github.com/ekmett/transformers-compat/
    License:  BSD3

* uniplate
    Synopsis: Help writing simple, concise and fast generic operations.
    Default available version: 1.6.13
    Installed versions: 1.6.13
    Homepage: https://github.com/ndmitchell/uniplate#readme
    License:  BSD3

* unix
    Synopsis: POSIX functionality
    Default available version: 2.7.2.2
    Installed versions: 2.7.2.2
    Homepage: https://github.com/haskell/unix
    License:  BSD3

* unliftio-core
    Synopsis: The MonadUnliftIO typeclass for unlifting monads to IO
    Default available version: 0.2.0.1
    Installed versions: 0.2.0.1
    Homepage: https://github.com/fpco/unliftio/tree/master/unliftio-core#readme
    License:  MIT

* unordered-containers
    Synopsis: Efficient hashing-based container types
    Default available version: 0.2.13.0
    Installed versions: 0.2.13.0
    Homepage: https://github.com/haskell-unordered-containers/unordered-containers
    License:  BSD3

* utf8-string
    Synopsis: Support for reading and writing UTF8 Strings
    Default available version: 1.0.2
    Installed versions: 1.0.2
    Homepage: https://github.com/glguy/utf8-string/
    License:  BSD3

* uuid-types
    Synopsis: Type definitions for Universally Unique Identifiers
    Default available version: 1.0.4
    Installed versions: 1.0.3
    Homepage: https://github.com/haskell-hvr/uuid
    License:  BSD3

* vector
    Synopsis: Efficient Arrays
    Default available version: 0.12.2.0
    Installed versions: 0.12.2.0
    Homepage: https://github.com/haskell/vector
    License:  BSD3

* vector-algorithms
    Synopsis: Efficient algorithms for vector arrays
    Default available version: 0.8.0.4
    Installed versions: 0.8.0.4
    Homepage: https://github.com/erikd/vector-algorithms/
    License:  BSD3

* xhtml
    Synopsis: An XHTML combinator library
    Default available version: 3000.2.2.1
    Installed versions: 3000.2.2.1
    Homepage: https://github.com/haskell/xhtml
    License:  BSD3

* yaml
    Synopsis: Support for parsing and rendering YAML documents.
    Default available version: 0.11.5.0
    Installed versions: 0.11.5.0
    Homepage: https://github.com/snoyberg/yaml#readme
    License:  BSD3

* zlib
    Synopsis: Compression and decompression in the gzip and zlib formats
    Default available version: 0.6.2.2
    Installed versions: 0.6.2.2
    License:  BSD3

Offline

#3 2021-02-21 17:02:35

chaseleif
Member
From: Texas
Registered: 2020-08-01
Posts: 18

Re: How can i fix this 'GHC' path problem?

Your first error for glob, and the others, look like they need stuff from here: https://hackage.haskell.org/package/dlist
maybe try to install "stack" before "cabal".
If it doesn't work after installing stack, my guess would be you need to trace the errors and manually resolve dependencies

Last edited by chaseleif (2021-02-21 17:05:08)

Offline

#4 2021-02-21 18:34:10

newbbbbbbbb
Member
Registered: 2021-02-19
Posts: 3

Re: How can i fix this 'GHC' path problem?

chaseleif wrote:

Your first error for glob, and the others, look like they need stuff from here: https://hackage.haskell.org/package/dlist
maybe try to install "stack" before "cabal".
If it doesn't work after installing stack, my guess would be you need to trace the errors and manually resolve dependencies

First of all, Thanks for reply.

The stack alread installed, And the dlist already installed too.

the info in ghci

λ> :show packages
active package flags:
  -package dlist
  -package containers
  -package time
  -package vector
  -package-id hlint-3.2.7-5bdFDwJfbOa9IALKTjjKkz
  -package-id text-1.2.4.1
  -package-id directory-1.3.6.0
  -package-id template-haskell-2.16.0.0
  -package-id pretty-1.1.3.6
  -package-id ghc-boot-th-8.10.4
  -package-id deepseq-1.4.4.0
  -package-id transformers-0.5.6.2
  -package-id terminfo-0.4.1.4
  -package-id rts
  -package-id ghci-8.10.4
  -package-id ghc-prim-0.6.1
  -package-id binary-0.8.8.0
  -package-id ghc-boot-8.10.4
  -package-id containers-0.6.2.1
  -package-id integer-gmp-1.0.3.0
  -package-id array-0.5.4.0
  -package-id process-1.6.9.0
  -package-id filepath-1.4.2.1
  -package-id hpc-0.6.1.0
  -package-id time-1.9.3
  -package-id base-4.14.1.0
  -package-id unix-2.7.2.2
  -package-id bytestring-0.10.12.0
  -package-id ghc-8.10.4
λ> import qualified Data.DList as DL
*** Parser [source]:
!!! Parser [source]: finished in 0.08 milliseconds, allocated 0.038 megabytes
(0.00 secs, 0 bytes)

The stack version

☯~☯ stack --version
Version 2.5.1, Git revision d6ab861544918185236cf826cb2028abb266d6d5 x86_64 hpack-0.33.0

I already install with stack.
The same information result.

Last edited by newbbbbbbbb (2021-02-21 18:34:37)

Offline

Board footer

Powered by FluxBB