-
Notifications
You must be signed in to change notification settings - Fork 31
Description
See below:
`bob@SoftCraft-Prime:~$ cabal install husk-scheme
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.10.1.0 supports
'ghc' version < 9.8): /home/bob/.ghcup/bin/ghc is version 9.8.1
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.10.1.0 supports
'ghc' version < 9.8): /home/bob/.ghcup/bin/ghc is version 9.8.1
Resolving dependencies...
Build profile: -w ghc-9.8.1 -O1
In order, the following will be built (use -v for more details):
- bytestring-0.11.5.2 (lib) (requires download & build)
- utf8-string-1.0.2 (lib) (requires download & build)
- knob-0.2.2 (lib) (requires download & build)
- filepath-1.4.100.4 (lib) (requires download & build)
- binary-0.8.9.1 (lib) (requires download & build)
- unix-2.8.3.0 (lib:unix) (requires download & build)
- text-2.1 (lib) (requires download & build)
- directory-1.3.8.1 (lib:directory) (requires download & build)
- parsec-3.1.17.0 (lib) (requires download & build)
- process-1.6.18.0 (lib:process) (requires download & build)
- Cabal-syntax-3.10.2.0 (lib) (requires download & build)
- haskeline-0.8.2.1 (lib) (requires download & build)
- Cabal-3.10.2.1 (lib) (requires download & build)
- husk-scheme-3.20 (lib) (requires download & build)
- ghc-paths-0.1.0.12 (lib:ghc-paths) (requires download & build)
- husk-scheme-3.20 (exe:huski) (requires download & build)
- husk-scheme-3.20 (exe:huskc) (requires download & build)
Downloading bytestring-0.11.5.2
Downloaded bytestring-0.11.5.2
Downloading knob-0.2.2
Starting bytestring-0.11.5.2 (lib)
Downloaded knob-0.2.2
Downloading utf8-string-1.0.2
Downloaded utf8-string-1.0.2
Downloading binary-0.8.9.1
Downloaded binary-0.8.9.1
Downloading filepath-1.4.100.4
Downloaded filepath-1.4.100.4
Downloading unix-2.8.3.0
Downloaded unix-2.8.3.0
Downloading directory-1.3.8.1
Downloaded directory-1.3.8.1
Downloading process-1.6.18.0
Downloaded process-1.6.18.0
Downloading haskeline-0.8.2.1
Downloaded haskeline-0.8.2.1
Downloading text-2.1
Downloaded text-2.1
Downloading parsec-3.1.17.0
Downloaded parsec-3.1.17.0
Downloading husk-scheme-3.20
Downloaded husk-scheme-3.20
Downloading Cabal-syntax-3.10.2.0
Downloaded Cabal-syntax-3.10.2.0
Downloading Cabal-3.10.2.1
Building bytestring-0.11.5.2 (lib)
Downloaded Cabal-3.10.2.1
Downloading ghc-paths-0.1.0.12
Downloaded ghc-paths-0.1.0.12
Installing bytestring-0.11.5.2 (lib)
Completed bytestring-0.11.5.2 (lib)
Starting knob-0.2.2 (lib)
Starting utf8-string-1.0.2 (lib)
Starting filepath-1.4.100.4 (lib)
Starting binary-0.8.9.1 (lib)
Building binary-0.8.9.1 (lib)
Building knob-0.2.2 (lib)
Building filepath-1.4.100.4 (lib)
Building utf8-string-1.0.2 (lib)
Installing knob-0.2.2 (lib)
Completed knob-0.2.2 (lib)
Installing utf8-string-1.0.2 (lib)
Completed utf8-string-1.0.2 (lib)
Installing filepath-1.4.100.4 (lib)
Completed filepath-1.4.100.4 (lib)
Starting unix-2.8.3.0 (all, legacy fallback)
Installing binary-0.8.9.1 (lib)
Completed binary-0.8.9.1 (lib)
Starting text-2.1 (lib)
Building text-2.1 (lib)
Installing text-2.1 (lib)
Completed text-2.1 (lib)
Starting parsec-3.1.17.0 (lib)
Building parsec-3.1.17.0 (lib)
Installing parsec-3.1.17.0 (lib)
Completed parsec-3.1.17.0 (lib)
Building unix-2.8.3.0 (all, legacy fallback)
Installing unix-2.8.3.0 (all, legacy fallback)
Completed unix-2.8.3.0 (all, legacy fallback)
Starting directory-1.3.8.1 (all, legacy fallback)
Building directory-1.3.8.1 (all, legacy fallback)
Installing directory-1.3.8.1 (all, legacy fallback)
Completed directory-1.3.8.1 (all, legacy fallback)
Starting process-1.6.18.0 (all, legacy fallback)
Starting Cabal-syntax-3.10.2.0 (lib)
Building Cabal-syntax-3.10.2.0 (lib)
Building process-1.6.18.0 (all, legacy fallback)
Installing process-1.6.18.0 (all, legacy fallback)
Completed process-1.6.18.0 (all, legacy fallback)
Starting haskeline-0.8.2.1 (lib)
Building haskeline-0.8.2.1 (lib)
Installing haskeline-0.8.2.1 (lib)
Completed haskeline-0.8.2.1 (lib)
Starting husk-scheme-3.20 (lib)
Building husk-scheme-3.20 (lib)
Installing Cabal-syntax-3.10.2.0 (lib)
Completed Cabal-syntax-3.10.2.0 (lib)
Failed to build husk-scheme-3.20.
Build log (
/home/bob/.cache/cabal/logs/ghc-9.8.1/husk-scheme-3.20-b1c91834e082eb077e985607add28c1f30cdf64edfecb29d53c1f1d8f621c58f.log
):
Configuring library for husk-scheme-3.20..
Preprocessing library for husk-scheme-3.20..
Building library for husk-scheme-3.20..
[ 1 of 17] Compiling Language.Scheme.Types ( hs-src/Language/Scheme/Types.hs, dist/build/Language/Scheme/Types.o, dist/build/Language/Scheme/Types.dyn_o )
[ 2 of 17] Compiling Language.Scheme.Plugins.CPUTime ( hs-src/Language/Scheme/Plugins/CPUTime.hs, dist/build/Language/Scheme/Plugins/CPUTime.o, dist/build/Language/Scheme/Plugins/CPUTime.dyn_o )
hs-src/Language/Scheme/Plugins/CPUTime.hs:28:8: error: [GHC-88464]
Variable not in scope:
liftIO :: IO Integer -> ExceptT LispError IO Integer
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
28 | t <- liftIO $ System.CPUTime.getCPUTime
| ^^^^^^
[ 3 of 17] Compiling Language.Scheme.Parser ( hs-src/Language/Scheme/Parser.hs, dist/build/Language/Scheme/Parser.o, dist/build/Language/Scheme/Parser.dyn_o )
hs-src/Language/Scheme/Parser.hs:374:13: error: [GHC-88464]
Variable not in scope:
liftM
:: ([LispVal] -> LispVal)
-> ParsecT String () Identity [LispVal] -> Parser LispVal
|
374 | parseList = liftM List $ sepBy parseExpr whiteSpace
| ^^^^^
[ 4 of 17] Compiling Language.Scheme.Numerical ( hs-src/Language/Scheme/Numerical.hs, dist/build/Language/Scheme/Numerical.o, dist/build/Language/Scheme/Numerical.dyn_o )
[ 5 of 17] Compiling Language.Scheme.Macro.Matches ( hs-src/Language/Scheme/Macro/Matches.hs, dist/build/Language/Scheme/Macro/Matches.o, dist/build/Language/Scheme/Macro/Matches.dyn_o )
hs-src/Language/Scheme/Macro/Matches.hs:50:25: warning: [GHC-63394] [-Wx-partial]
In the use of ‘head’
(imported from Prelude, but defined in GHC.List):
"This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty."
|
50 | then getData (head lst) is
| ^^^^
[ 6 of 17] Compiling Language.Scheme.Util ( hs-src/Language/Scheme/Util.hs, dist/build/Language/Scheme/Util.o, dist/build/Language/Scheme/Util.dyn_o )
[ 7 of 17] Compiling Language.Scheme.Variables ( hs-src/Language/Scheme/Variables.hs, dist/build/Language/Scheme/Variables.o, dist/build/Language/Scheme/Variables.dyn_o )
hs-src/Language/Scheme/Variables.hs:108:12: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef LispVal))
-> IO (Data.Map.Map [Char] (IORef a2))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
108 | binds <- liftIO $ readIORef $ bindings env
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:113:10: error: [GHC-88464]
Variable not in scope: liftIO :: IO a -> m a0
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
113 | v <- liftIO $ readIORef val
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:119:13: error: [GHC-88464]
Variable not in scope: liftIO :: IO String -> IO [Char]
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
119 | envStr <- liftIO $ printEnv env
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:123:22: error: [GHC-88464]
Variable not in scope: liftIO :: IO String -> IO [Char]
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
123 | parEnvStr <- liftIO $ recPrintEnv par
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:134:16: error: [GHC-88464]
Variable not in scope: liftIO :: IO [LispVal] -> IO [LispVal]
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
134 | pxs <- liftIO $ recExportsFromEnv par
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:142:12: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef LispVal))
-> IO (Data.Map.Map [Char] b0)
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
142 | binds <- liftIO $ readIORef $ bindings env
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:154:11: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef [LispVal]))
-> IO (Data.Map.Map String (IORef [LispVal]))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
154 | ptrs <- liftIO $ readIORef $ pointers env
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:157:12: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef LispVal))
-> IO (Data.Map.Map String (IORef a1))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
157 | binds <- liftIO $ readIORef $ bindings env
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:162:15: error: [GHC-88464]
Variable not in scope: liftIO :: IO a10 -> IO a11
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
162 | x <- liftIO $ readIORef val
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:176:12: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef [LispVal]))
-> IO (Data.Map.Map String (IORef [LispVal]))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
176 | sPtrs <- liftIO $ readIORef $ pointers sEnv
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:177:12: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef [LispVal]))
-> IO (Data.Map.Map String (IORef [LispVal]))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
177 | dPtrs <- liftIO $ readIORef $ pointers dEnv
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:180:13: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef LispVal))
-> IO (Data.Map.Map String (IORef LispVal))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
180 | sBinds <- liftIO $ readIORef $ bindings sEnv
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:181:13: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef LispVal))
-> IO (Data.Map.Map String (IORef LispVal))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
181 | dBinds <- liftIO $ readIORef $ bindings dEnv
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:221:12: error: [GHC-88464]
Variable not in scope: liftIO :: IO Bool -> IO Bool
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
221 | found <- liftIO $ isNamespacedBound envRef namespace var
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:322:14: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef LispVal))
-> ExceptT LispError IO (Data.Map.Map String (IORef LispVal))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
322 | binds <- liftIO $ readIORef $ bindings envRef
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:325:16: error: [GHC-88464]
Variable not in scope: liftIO :: IO a -> ExceptT LispError IO a
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
325 | v <- liftIO $ unpackFnc a
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:398:10: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef LispVal))
-> ExceptT LispError IO (Data.Map.Map String (IORef LispVal))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
398 | env <- liftIO $ readIORef $ bindings envRef
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:401:7: error: [GHC-88464]
Variable not in scope: liftIO :: IO () -> ExceptT LispError IO a3
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
401 | liftIO $ writeIORef a valueToStore
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:411:11: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef [LispVal]))
-> ExceptT LispError IO (Data.Map.Map String (IORef [a6]))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
411 | ptrs <- liftIO $ readIORef $ pointers envRef
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:414:14: error: [GHC-88464]
Variable not in scope:
liftIO :: IO [a6] -> ExceptT LispError IO [LispVal]
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
414 | val <- liftIO $ readIORef valIORef
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:424:11: error: [GHC-88464]
Variable not in scope: liftIO :: IO () -> ExceptT LispError IO a5
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
424 | liftIO $ writeIORef valIORef []
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:448:12: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef [LispVal]))
-> ExceptT LispError IO (Data.Map.Map String (IORef [LispVal]))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
448 | env <- liftIO $ readIORef $ pointers envRef'
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:452:15: error: [GHC-88464]
Variable not in scope:
liftIO :: IO [LispVal] -> ExceptT LispError IO [LispVal]
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
452 | ps <- liftIO $ readIORef ps'
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:453:9: error: [GHC-88464]
Variable not in scope: liftIO :: IO () -> ExceptT LispError IO a8
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
453 | liftIO $ writeIORef ps' $ ps ++ ptrs
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:457:21: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (IORef [LispVal]) -> ExceptT LispError IO (IORef [LispVal])
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
457 | valueRef <- liftIO $ newIORef ptrs
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:458:9: error: [GHC-88464]
Variable not in scope: liftIO :: IO () -> ExceptT LispError IO a7
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
458 | liftIO $ writeIORef (pointers envRef') (Data.Map.insert (getVarName namespace var') valueRef env)
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:514:21: error: [GHC-88464]
Variable not in scope:
liftIO :: IO Bool -> ExceptT LispError IO Bool
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
514 | alreadyDefined <- liftIO $ isNamespacedBound envRef namespace var
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:531:7: error: [GHC-88464]
Variable not in scope:
liftIO :: IO LispVal -> ExceptT LispError IO LispVal
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
531 | liftIO $ do
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:553:11: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef LispVal))
-> ExceptT LispError IO (Data.Map.Map String (IORef a4))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
553 | env <- liftIO $ readIORef $ bindings envRef
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:556:13: error: [GHC-88464]
Variable not in scope:
liftIO :: IO a4 -> ExceptT LispError IO LispVal
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
556 | v <- liftIO $ readIORef a
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:560:21: error: [GHC-88464]
Variable not in scope:
liftIO
:: IO (Data.Map.Map String (IORef [LispVal]))
-> ExceptT LispError IO (Data.Map.Map String (IORef [LispVal]))
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
560 | ptrs <- liftIO $ readIORef $ pointers envRef
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:567:34: error: [GHC-88464]
Variable not in scope:
liftIO :: IO LispVal -> ExceptT LispError IO LispVal
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
567 | (Just valueRef) -> liftIO $ do
| ^^^^^^
hs-src/Language/Scheme/Variables.hs:573:26: error: [GHC-88464]
Variable not in scope:
liftIO :: IO LispVal -> ExceptT LispError IO LispVal
Suggested fix: Perhaps use ‘liftA2’ (imported from Prelude)
|
573 | Nothing -> liftIO $ do
| ^^^^^^
[13 of 17] Compiling Paths_husk_scheme ( dist/build/autogen/Paths_husk_scheme.hs, dist/build/Paths_husk_scheme.o, dist/build/Paths_husk_scheme.dyn_o )
Error: cabal: Failed to build husk-scheme-3.20 (which is required by exe:huski
from husk-scheme-3.20 and exe:huskc from husk-scheme-3.20). See the build log
above for details.