을 설치 한 다음 ghc6을 설치 한 다음 generic-haskell을 설치하면 다음 메시지가 나타납니다. 수행 방법? 우분투에서hugs를 설치 한 후 generic haskell
# make package
Creating generic-haskell package ...
ghc-pkg: cannot find package generic-haskell
Reading package info from "generic-haskell.cabal.pkg" ... done.
generic-haskell-1.80: missing id field
generic-haskell-1.80: dependency "base-4.2.0.0" doesn't exist (use --force to override)
generic-haskell-1.80: dependency "haskell98-1.0.1.1" doesn't exist (use --force to override)
generic-haskell-1.80: dependency "containers-0.3.0.0" doesn't exist (use --force to override)
make: *** [package] Error 1
은 내가 GHC-6.2.2을 컴파일 다음과 같은 오류
/usr/bin/ghc -M -optdep-f -optdep.depend -osuf o -H16m -O HaskTags.hs
on the commandline:
Warning: -optdep-f is deprecated: Use -dep-makefile instead
------------------------------------------------------------------------
==fptools== make boot - --no-print-directory -r;
in /home/martin/ghc-6.2.2/ghc/utils/ghc-pkg
------------------------------------------------------------------------
/usr/bin/ghc -M -optdep-f -optdep.depend -osuf o -H16m -O -cpp -DPKG_TOOL -DWANT_PRETTY Main.hs Package.hs ParsePkgConfLite.hs Version.hs
on the commandline:
Warning: -optdep-f is deprecated: Use -dep-makefile instead
make all
/usr/bin/ghc -H16m -O -cpp -DPKG_TOOL -DWANT_PRETTY -c Main.hs -o Main.o -ohi Main.hi
Main.hs:496:11:
Ambiguous type variable `e' in the constraint:
`Exception.Exception e'
arising from a use of `Exception.throw' at Main.hs:496:11-25
Possible cause: the monomorphism restriction applied to the following:
my_catch :: forall a. IO a -> (e -> IO a) -> IO a
(bound at Main.hs:499:0)
my_throw :: forall a. e -> a (bound at Main.hs:496:0)
Probable fix: give these definition(s) an explicit type signature
or use -XNoMonomorphismRestriction
Main.hs:498:13:
Ambiguous type variable `e1' in the constraint:
`Exception.Exception e1'
arising from a use of `Exception.catch' at Main.hs:498:13-27
Possible cause: the monomorphism restriction applied to the following:
eval_catch :: forall a. a -> (e1 -> IO a) -> IO a
(bound at Main.hs:498:0)
Probable fix: give these definition(s) an explicit type signature
or use -XNoMonomorphismRestriction
make[4]: *** [Main.o] Error 1
make[3]: *** [boot] Error 2
make[2]: *** [boot] Error 1
make[1]: *** [boot] Error 1
어느 하나 우분투 10 GHC의 이전 버전 및 일반 하스켈 설치되어있어?
많은 버전의 버전이 있는데, ghc-6.2.2가 오류를 해결하려고했는데 우분투 10을 제거해야 이전 버전 우분투를 설치해야 작동 할 수 있습니까? 어느 버전의 우분투 버전이 ghc 작동합니까? http://www.cs.uu.nl/research/projects/generic-haskell/compiler.html
감사합니다. 오늘 밤에 사용해보십시오 – Jo0o0
사실 ghc의 이전 버전을 시도했지만 이전 오류가 발생했습니다. 이전 오류가 발생했습니다. – Jo0o0
GHC 6.2.2 (2004 년 10 월 15 일에 릴리스 됨)는 * 많이 사용되지 않습니다 *. Haskell 플랫폼을 설치하십시오. http://haskell.org/platform –