diff --git a/a4/db.txt b/a4/db.txt new file mode 100644 index 0000000..e69de29 diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/AST.dyn_hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/AST.dyn_hi new file mode 100644 index 0000000..e6947ae Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/AST.dyn_hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/AST.dyn_o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/AST.dyn_o new file mode 100644 index 0000000..28ebd56 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/AST.dyn_o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/AST.hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/AST.hi new file mode 100644 index 0000000..e6947ae Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/AST.hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/AST.o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/AST.o new file mode 100644 index 0000000..4e8e54c Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/AST.o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Eval.dyn_hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Eval.dyn_hi new file mode 100644 index 0000000..7ceb1dc Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Eval.dyn_hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Eval.dyn_o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Eval.dyn_o new file mode 100644 index 0000000..a077e28 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Eval.dyn_o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Eval.hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Eval.hi new file mode 100644 index 0000000..7ceb1dc Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Eval.hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Eval.o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Eval.o new file mode 100644 index 0000000..a077e28 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Eval.o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpIO.dyn_hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpIO.dyn_hi new file mode 100644 index 0000000..65d7da9 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpIO.dyn_hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpIO.dyn_o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpIO.dyn_o new file mode 100644 index 0000000..0cc3cbb Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpIO.dyn_o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpIO.hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpIO.hi new file mode 100644 index 0000000..65d7da9 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpIO.hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpIO.o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpIO.o new file mode 100644 index 0000000..0cc3cbb Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpIO.o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpPure.dyn_hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpPure.dyn_hi new file mode 100644 index 0000000..42f65bb Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpPure.dyn_hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpPure.dyn_o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpPure.dyn_o new file mode 100644 index 0000000..1636485 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpPure.dyn_o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpPure.hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpPure.hi new file mode 100644 index 0000000..42f65bb Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpPure.hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpPure.o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpPure.o new file mode 100644 index 0000000..1636485 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/InterpPure.o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Interp_Tests.dyn_hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Interp_Tests.dyn_hi new file mode 100644 index 0000000..2949765 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Interp_Tests.dyn_hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Interp_Tests.dyn_o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Interp_Tests.dyn_o new file mode 100644 index 0000000..044a861 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Interp_Tests.dyn_o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Interp_Tests.hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Interp_Tests.hi new file mode 100644 index 0000000..2949765 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Interp_Tests.hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Interp_Tests.o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Interp_Tests.o new file mode 100644 index 0000000..044a861 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Interp_Tests.o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Monad.dyn_hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Monad.dyn_hi new file mode 100644 index 0000000..db421b6 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Monad.dyn_hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Monad.dyn_o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Monad.dyn_o new file mode 100644 index 0000000..77dea30 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Monad.dyn_o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Monad.hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Monad.hi new file mode 100644 index 0000000..db421b6 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Monad.hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Monad.o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Monad.o new file mode 100644 index 0000000..00edbb4 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Monad.o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Util.dyn_hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Util.dyn_hi new file mode 100644 index 0000000..538375a Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Util.dyn_hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Util.dyn_o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Util.dyn_o new file mode 100644 index 0000000..e415bb1 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Util.dyn_o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Util.hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Util.hi new file mode 100644 index 0000000..538375a Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Util.hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Util.o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Util.o new file mode 100644 index 0000000..e7cef6d Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/APL/Util.o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/autogen/PackageInfo_a4.hs b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/autogen/PackageInfo_a4.hs new file mode 100644 index 0000000..22a9ab2 --- /dev/null +++ b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/autogen/PackageInfo_a4.hs @@ -0,0 +1,25 @@ +{-# LANGUAGE NoRebindableSyntax #-} +{-# OPTIONS_GHC -fno-warn-missing-import-lists #-} +{-# OPTIONS_GHC -w #-} +module PackageInfo_a4 ( + name, + version, + synopsis, + copyright, + homepage, + ) where + +import Data.Version (Version(..)) +import Prelude + +name :: String +name = "a4" +version :: Version +version = Version [1,0,0,0] [] + +synopsis :: String +synopsis = "" +copyright :: String +copyright = "" +homepage :: String +homepage = "" diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/autogen/Paths_a4.hs b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/autogen/Paths_a4.hs new file mode 100644 index 0000000..fa7e324 --- /dev/null +++ b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/autogen/Paths_a4.hs @@ -0,0 +1,77 @@ +{-# LANGUAGE CPP #-} +{-# LANGUAGE NoRebindableSyntax #-} +#if __GLASGOW_HASKELL__ >= 810 +{-# OPTIONS_GHC -Wno-prepositive-qualified-module #-} +#endif +{-# OPTIONS_GHC -fno-warn-missing-import-lists #-} +{-# OPTIONS_GHC -w #-} +module Paths_a4 ( + version, + getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, + getDataFileName, getSysconfDir + ) where + + +import qualified Control.Exception as Exception +import qualified Data.List as List +import Data.Version (Version(..)) +import System.Environment (getEnv) +import Prelude + + +#if defined(VERSION_base) + +#if MIN_VERSION_base(4,0,0) +catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a +#else +catchIO :: IO a -> (Exception.Exception -> IO a) -> IO a +#endif + +#else +catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a +#endif +catchIO = Exception.catch + +version :: Version +version = Version [1,0,0,0] [] + +getDataFileName :: FilePath -> IO FilePath +getDataFileName name = do + dir <- getDataDir + return (dir `joinFileName` name) + +getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath + + + + +bindir, libdir, dynlibdir, datadir, libexecdir, sysconfdir :: FilePath +bindir = "/home/nikolaj/.cabal/bin" +libdir = "/home/nikolaj/.cabal/lib/x86_64-linux-ghc-9.2.8/a4-1.0.0.0-inplace" +dynlibdir = "/home/nikolaj/.cabal/lib/x86_64-linux-ghc-9.2.8" +datadir = "/home/nikolaj/.cabal/share/x86_64-linux-ghc-9.2.8/a4-1.0.0.0" +libexecdir = "/home/nikolaj/.cabal/libexec/x86_64-linux-ghc-9.2.8/a4-1.0.0.0" +sysconfdir = "/home/nikolaj/.cabal/etc" + +getBinDir = catchIO (getEnv "a4_bindir") (\_ -> return bindir) +getLibDir = catchIO (getEnv "a4_libdir") (\_ -> return libdir) +getDynLibDir = catchIO (getEnv "a4_dynlibdir") (\_ -> return dynlibdir) +getDataDir = catchIO (getEnv "a4_datadir") (\_ -> return datadir) +getLibexecDir = catchIO (getEnv "a4_libexecdir") (\_ -> return libexecdir) +getSysconfDir = catchIO (getEnv "a4_sysconfdir") (\_ -> return sysconfdir) + + + +joinFileName :: String -> String -> FilePath +joinFileName "" fname = fname +joinFileName "." fname = fname +joinFileName dir "" = dir +joinFileName dir fname + | isPathSeparator (List.last dir) = dir ++ fname + | otherwise = dir ++ pathSeparator : fname + +pathSeparator :: Char +pathSeparator = '/' + +isPathSeparator :: Char -> Bool +isPathSeparator c = c == '/' diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/autogen/cabal_macros.h b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/autogen/cabal_macros.h new file mode 100644 index 0000000..070dea8 --- /dev/null +++ b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/autogen/cabal_macros.h @@ -0,0 +1,163 @@ +/* DO NOT EDIT: This file is automatically generated by Cabal */ + +/* package a4-1.0.0.0 */ +#ifndef VERSION_a4 +#define VERSION_a4 "1.0.0.0" +#endif /* VERSION_a4 */ +#ifndef MIN_VERSION_a4 +#define MIN_VERSION_a4(major1,major2,minor) (\ + (major1) < 1 || \ + (major1) == 1 && (major2) < 0 || \ + (major1) == 1 && (major2) == 0 && (minor) <= 0) +#endif /* MIN_VERSION_a4 */ +/* package base-4.16.4.0 */ +#ifndef VERSION_base +#define VERSION_base "4.16.4.0" +#endif /* VERSION_base */ +#ifndef MIN_VERSION_base +#define MIN_VERSION_base(major1,major2,minor) (\ + (major1) < 4 || \ + (major1) == 4 && (major2) < 16 || \ + (major1) == 4 && (major2) == 16 && (minor) <= 4) +#endif /* MIN_VERSION_base */ +/* package directory-1.3.6.2 */ +#ifndef VERSION_directory +#define VERSION_directory "1.3.6.2" +#endif /* VERSION_directory */ +#ifndef MIN_VERSION_directory +#define MIN_VERSION_directory(major1,major2,minor) (\ + (major1) < 1 || \ + (major1) == 1 && (major2) < 3 || \ + (major1) == 1 && (major2) == 3 && (minor) <= 6) +#endif /* MIN_VERSION_directory */ +/* package process-1.6.16.0 */ +#ifndef VERSION_process +#define VERSION_process "1.6.16.0" +#endif /* VERSION_process */ +#ifndef MIN_VERSION_process +#define MIN_VERSION_process(major1,major2,minor) (\ + (major1) < 1 || \ + (major1) == 1 && (major2) < 6 || \ + (major1) == 1 && (major2) == 6 && (minor) <= 16) +#endif /* MIN_VERSION_process */ +/* package tasty-1.5 */ +#ifndef VERSION_tasty +#define VERSION_tasty "1.5" +#endif /* VERSION_tasty */ +#ifndef MIN_VERSION_tasty +#define MIN_VERSION_tasty(major1,major2,minor) (\ + (major1) < 1 || \ + (major1) == 1 && (major2) < 5 || \ + (major1) == 1 && (major2) == 5 && (minor) <= 0) +#endif /* MIN_VERSION_tasty */ +/* package tasty-hunit-0.10.2 */ +#ifndef VERSION_tasty_hunit +#define VERSION_tasty_hunit "0.10.2" +#endif /* VERSION_tasty_hunit */ +#ifndef MIN_VERSION_tasty_hunit +#define MIN_VERSION_tasty_hunit(major1,major2,minor) (\ + (major1) < 0 || \ + (major1) == 0 && (major2) < 10 || \ + (major1) == 0 && (major2) == 10 && (minor) <= 2) +#endif /* MIN_VERSION_tasty_hunit */ + +/* tool gcc-14.2.1 */ +#ifndef TOOL_VERSION_gcc +#define TOOL_VERSION_gcc "14.2.1" +#endif /* TOOL_VERSION_gcc */ +#ifndef MIN_TOOL_VERSION_gcc +#define MIN_TOOL_VERSION_gcc(major1,major2,minor) (\ + (major1) < 14 || \ + (major1) == 14 && (major2) < 2 || \ + (major1) == 14 && (major2) == 2 && (minor) <= 1) +#endif /* MIN_TOOL_VERSION_gcc */ +/* tool ghc-9.2.8 */ +#ifndef TOOL_VERSION_ghc +#define TOOL_VERSION_ghc "9.2.8" +#endif /* TOOL_VERSION_ghc */ +#ifndef MIN_TOOL_VERSION_ghc +#define MIN_TOOL_VERSION_ghc(major1,major2,minor) (\ + (major1) < 9 || \ + (major1) == 9 && (major2) < 2 || \ + (major1) == 9 && (major2) == 2 && (minor) <= 8) +#endif /* MIN_TOOL_VERSION_ghc */ +/* tool ghc-pkg-9.2.8 */ +#ifndef TOOL_VERSION_ghc_pkg +#define TOOL_VERSION_ghc_pkg "9.2.8" +#endif /* TOOL_VERSION_ghc_pkg */ +#ifndef MIN_TOOL_VERSION_ghc_pkg +#define MIN_TOOL_VERSION_ghc_pkg(major1,major2,minor) (\ + (major1) < 9 || \ + (major1) == 9 && (major2) < 2 || \ + (major1) == 9 && (major2) == 2 && (minor) <= 8) +#endif /* MIN_TOOL_VERSION_ghc_pkg */ +/* tool haddock-2.26.0 */ +#ifndef TOOL_VERSION_haddock +#define TOOL_VERSION_haddock "2.26.0" +#endif /* TOOL_VERSION_haddock */ +#ifndef MIN_TOOL_VERSION_haddock +#define MIN_TOOL_VERSION_haddock(major1,major2,minor) (\ + (major1) < 2 || \ + (major1) == 2 && (major2) < 26 || \ + (major1) == 2 && (major2) == 26 && (minor) <= 0) +#endif /* MIN_TOOL_VERSION_haddock */ +/* tool hpc-0.68 */ +#ifndef TOOL_VERSION_hpc +#define TOOL_VERSION_hpc "0.68" +#endif /* TOOL_VERSION_hpc */ +#ifndef MIN_TOOL_VERSION_hpc +#define MIN_TOOL_VERSION_hpc(major1,major2,minor) (\ + (major1) < 0 || \ + (major1) == 0 && (major2) < 68 || \ + (major1) == 0 && (major2) == 68 && (minor) <= 0) +#endif /* MIN_TOOL_VERSION_hpc */ +/* tool hsc2hs-0.68.8 */ +#ifndef TOOL_VERSION_hsc2hs +#define TOOL_VERSION_hsc2hs "0.68.8" +#endif /* TOOL_VERSION_hsc2hs */ +#ifndef MIN_TOOL_VERSION_hsc2hs +#define MIN_TOOL_VERSION_hsc2hs(major1,major2,minor) (\ + (major1) < 0 || \ + (major1) == 0 && (major2) < 68 || \ + (major1) == 0 && (major2) == 68 && (minor) <= 8) +#endif /* MIN_TOOL_VERSION_hsc2hs */ +/* tool pkg-config-2.1.1 */ +#ifndef TOOL_VERSION_pkg_config +#define TOOL_VERSION_pkg_config "2.1.1" +#endif /* TOOL_VERSION_pkg_config */ +#ifndef MIN_TOOL_VERSION_pkg_config +#define MIN_TOOL_VERSION_pkg_config(major1,major2,minor) (\ + (major1) < 2 || \ + (major1) == 2 && (major2) < 1 || \ + (major1) == 2 && (major2) == 1 && (minor) <= 1) +#endif /* MIN_TOOL_VERSION_pkg_config */ +/* tool runghc-9.2.8 */ +#ifndef TOOL_VERSION_runghc +#define TOOL_VERSION_runghc "9.2.8" +#endif /* TOOL_VERSION_runghc */ +#ifndef MIN_TOOL_VERSION_runghc +#define MIN_TOOL_VERSION_runghc(major1,major2,minor) (\ + (major1) < 9 || \ + (major1) == 9 && (major2) < 2 || \ + (major1) == 9 && (major2) == 2 && (minor) <= 8) +#endif /* MIN_TOOL_VERSION_runghc */ +/* tool strip-2.43 */ +#ifndef TOOL_VERSION_strip +#define TOOL_VERSION_strip "2.43" +#endif /* TOOL_VERSION_strip */ +#ifndef MIN_TOOL_VERSION_strip +#define MIN_TOOL_VERSION_strip(major1,major2,minor) (\ + (major1) < 2 || \ + (major1) == 2 && (major2) < 43 || \ + (major1) == 2 && (major2) == 43 && (minor) <= 0) +#endif /* MIN_TOOL_VERSION_strip */ + +#ifndef CURRENT_PACKAGE_KEY +#define CURRENT_PACKAGE_KEY "a4-1.0.0.0-inplace" +#endif /* CURRENT_packageKey */ +#ifndef CURRENT_COMPONENT_ID +#define CURRENT_COMPONENT_ID "a4-1.0.0.0-inplace" +#endif /* CURRENT_COMPONENT_ID */ +#ifndef CURRENT_PACKAGE_VERSION +#define CURRENT_PACKAGE_VERSION "1.0.0.0" +#endif /* CURRENT_PACKAGE_VERSION */ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/libHSa4-1.0.0.0-inplace-ghc9.2.8.so b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/libHSa4-1.0.0.0-inplace-ghc9.2.8.so new file mode 100755 index 0000000..aac81d9 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/libHSa4-1.0.0.0-inplace-ghc9.2.8.so differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/libHSa4-1.0.0.0-inplace.a b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/libHSa4-1.0.0.0-inplace.a new file mode 100644 index 0000000..aab51b9 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build/libHSa4-1.0.0.0-inplace.a differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/cache/build b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/cache/build new file mode 100644 index 0000000..3c07cbf Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/cache/build differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/cache/config b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/cache/config new file mode 100644 index 0000000..6cf4a15 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/cache/config differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/cache/registration b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/cache/registration new file mode 100644 index 0000000..6d14d02 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/cache/registration differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/package.conf.inplace/package.cache b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/package.conf.inplace/package.cache new file mode 100644 index 0000000..b3cae5c Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/package.conf.inplace/package.cache differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/package.conf.inplace/package.cache.lock b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/package.conf.inplace/package.cache.lock new file mode 100644 index 0000000..e69de29 diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/setup-config b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/setup-config new file mode 100644 index 0000000..ed4153a Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/setup-config differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/a4-test b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/a4-test new file mode 100755 index 0000000..17b8a1c Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/a4-test differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/a4-test-tmp/Main.dyn_hi b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/a4-test-tmp/Main.dyn_hi new file mode 100644 index 0000000..4b10687 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/a4-test-tmp/Main.dyn_hi differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/a4-test-tmp/Main.dyn_o b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/a4-test-tmp/Main.dyn_o new file mode 100644 index 0000000..ad41314 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/a4-test-tmp/Main.dyn_o differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/autogen/PackageInfo_a4.hs b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/autogen/PackageInfo_a4.hs new file mode 100644 index 0000000..22a9ab2 --- /dev/null +++ b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/autogen/PackageInfo_a4.hs @@ -0,0 +1,25 @@ +{-# LANGUAGE NoRebindableSyntax #-} +{-# OPTIONS_GHC -fno-warn-missing-import-lists #-} +{-# OPTIONS_GHC -w #-} +module PackageInfo_a4 ( + name, + version, + synopsis, + copyright, + homepage, + ) where + +import Data.Version (Version(..)) +import Prelude + +name :: String +name = "a4" +version :: Version +version = Version [1,0,0,0] [] + +synopsis :: String +synopsis = "" +copyright :: String +copyright = "" +homepage :: String +homepage = "" diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/autogen/Paths_a4.hs b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/autogen/Paths_a4.hs new file mode 100644 index 0000000..b7bff3f --- /dev/null +++ b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/autogen/Paths_a4.hs @@ -0,0 +1,77 @@ +{-# LANGUAGE CPP #-} +{-# LANGUAGE NoRebindableSyntax #-} +#if __GLASGOW_HASKELL__ >= 810 +{-# OPTIONS_GHC -Wno-prepositive-qualified-module #-} +#endif +{-# OPTIONS_GHC -fno-warn-missing-import-lists #-} +{-# OPTIONS_GHC -w #-} +module Paths_a4 ( + version, + getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, + getDataFileName, getSysconfDir + ) where + + +import qualified Control.Exception as Exception +import qualified Data.List as List +import Data.Version (Version(..)) +import System.Environment (getEnv) +import Prelude + + +#if defined(VERSION_base) + +#if MIN_VERSION_base(4,0,0) +catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a +#else +catchIO :: IO a -> (Exception.Exception -> IO a) -> IO a +#endif + +#else +catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a +#endif +catchIO = Exception.catch + +version :: Version +version = Version [1,0,0,0] [] + +getDataFileName :: FilePath -> IO FilePath +getDataFileName name = do + dir <- getDataDir + return (dir `joinFileName` name) + +getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath + + + + +bindir, libdir, dynlibdir, datadir, libexecdir, sysconfdir :: FilePath +bindir = "/home/nikolaj/.cabal/bin" +libdir = "/home/nikolaj/.cabal/lib/x86_64-linux-ghc-9.2.8/a4-1.0.0.0-inplace-a4-test" +dynlibdir = "/home/nikolaj/.cabal/lib/x86_64-linux-ghc-9.2.8" +datadir = "/home/nikolaj/.cabal/share/x86_64-linux-ghc-9.2.8/a4-1.0.0.0" +libexecdir = "/home/nikolaj/.cabal/libexec/x86_64-linux-ghc-9.2.8/a4-1.0.0.0" +sysconfdir = "/home/nikolaj/.cabal/etc" + +getBinDir = catchIO (getEnv "a4_bindir") (\_ -> return bindir) +getLibDir = catchIO (getEnv "a4_libdir") (\_ -> return libdir) +getDynLibDir = catchIO (getEnv "a4_dynlibdir") (\_ -> return dynlibdir) +getDataDir = catchIO (getEnv "a4_datadir") (\_ -> return datadir) +getLibexecDir = catchIO (getEnv "a4_libexecdir") (\_ -> return libexecdir) +getSysconfDir = catchIO (getEnv "a4_sysconfdir") (\_ -> return sysconfdir) + + + +joinFileName :: String -> String -> FilePath +joinFileName "" fname = fname +joinFileName "." fname = fname +joinFileName dir "" = dir +joinFileName dir fname + | isPathSeparator (List.last dir) = dir ++ fname + | otherwise = dir ++ pathSeparator : fname + +pathSeparator :: Char +pathSeparator = '/' + +isPathSeparator :: Char -> Bool +isPathSeparator c = c == '/' diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/autogen/cabal_macros.h b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/autogen/cabal_macros.h new file mode 100644 index 0000000..f3bdd0b --- /dev/null +++ b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/autogen/cabal_macros.h @@ -0,0 +1,140 @@ +/* DO NOT EDIT: This file is automatically generated by Cabal */ + +/* package a4-1.0.0.0 */ +#ifndef VERSION_a4 +#define VERSION_a4 "1.0.0.0" +#endif /* VERSION_a4 */ +#ifndef MIN_VERSION_a4 +#define MIN_VERSION_a4(major1,major2,minor) (\ + (major1) < 1 || \ + (major1) == 1 && (major2) < 0 || \ + (major1) == 1 && (major2) == 0 && (minor) <= 0) +#endif /* MIN_VERSION_a4 */ +/* package a4-1.0.0.0 */ +#ifndef VERSION_a4 +#define VERSION_a4 "1.0.0.0" +#endif /* VERSION_a4 */ +#ifndef MIN_VERSION_a4 +#define MIN_VERSION_a4(major1,major2,minor) (\ + (major1) < 1 || \ + (major1) == 1 && (major2) < 0 || \ + (major1) == 1 && (major2) == 0 && (minor) <= 0) +#endif /* MIN_VERSION_a4 */ +/* package base-4.16.4.0 */ +#ifndef VERSION_base +#define VERSION_base "4.16.4.0" +#endif /* VERSION_base */ +#ifndef MIN_VERSION_base +#define MIN_VERSION_base(major1,major2,minor) (\ + (major1) < 4 || \ + (major1) == 4 && (major2) < 16 || \ + (major1) == 4 && (major2) == 16 && (minor) <= 4) +#endif /* MIN_VERSION_base */ +/* package tasty-1.5 */ +#ifndef VERSION_tasty +#define VERSION_tasty "1.5" +#endif /* VERSION_tasty */ +#ifndef MIN_VERSION_tasty +#define MIN_VERSION_tasty(major1,major2,minor) (\ + (major1) < 1 || \ + (major1) == 1 && (major2) < 5 || \ + (major1) == 1 && (major2) == 5 && (minor) <= 0) +#endif /* MIN_VERSION_tasty */ + +/* tool gcc-14.2.1 */ +#ifndef TOOL_VERSION_gcc +#define TOOL_VERSION_gcc "14.2.1" +#endif /* TOOL_VERSION_gcc */ +#ifndef MIN_TOOL_VERSION_gcc +#define MIN_TOOL_VERSION_gcc(major1,major2,minor) (\ + (major1) < 14 || \ + (major1) == 14 && (major2) < 2 || \ + (major1) == 14 && (major2) == 2 && (minor) <= 1) +#endif /* MIN_TOOL_VERSION_gcc */ +/* tool ghc-9.2.8 */ +#ifndef TOOL_VERSION_ghc +#define TOOL_VERSION_ghc "9.2.8" +#endif /* TOOL_VERSION_ghc */ +#ifndef MIN_TOOL_VERSION_ghc +#define MIN_TOOL_VERSION_ghc(major1,major2,minor) (\ + (major1) < 9 || \ + (major1) == 9 && (major2) < 2 || \ + (major1) == 9 && (major2) == 2 && (minor) <= 8) +#endif /* MIN_TOOL_VERSION_ghc */ +/* tool ghc-pkg-9.2.8 */ +#ifndef TOOL_VERSION_ghc_pkg +#define TOOL_VERSION_ghc_pkg "9.2.8" +#endif /* TOOL_VERSION_ghc_pkg */ +#ifndef MIN_TOOL_VERSION_ghc_pkg +#define MIN_TOOL_VERSION_ghc_pkg(major1,major2,minor) (\ + (major1) < 9 || \ + (major1) == 9 && (major2) < 2 || \ + (major1) == 9 && (major2) == 2 && (minor) <= 8) +#endif /* MIN_TOOL_VERSION_ghc_pkg */ +/* tool haddock-2.26.0 */ +#ifndef TOOL_VERSION_haddock +#define TOOL_VERSION_haddock "2.26.0" +#endif /* TOOL_VERSION_haddock */ +#ifndef MIN_TOOL_VERSION_haddock +#define MIN_TOOL_VERSION_haddock(major1,major2,minor) (\ + (major1) < 2 || \ + (major1) == 2 && (major2) < 26 || \ + (major1) == 2 && (major2) == 26 && (minor) <= 0) +#endif /* MIN_TOOL_VERSION_haddock */ +/* tool hpc-0.68 */ +#ifndef TOOL_VERSION_hpc +#define TOOL_VERSION_hpc "0.68" +#endif /* TOOL_VERSION_hpc */ +#ifndef MIN_TOOL_VERSION_hpc +#define MIN_TOOL_VERSION_hpc(major1,major2,minor) (\ + (major1) < 0 || \ + (major1) == 0 && (major2) < 68 || \ + (major1) == 0 && (major2) == 68 && (minor) <= 0) +#endif /* MIN_TOOL_VERSION_hpc */ +/* tool hsc2hs-0.68.8 */ +#ifndef TOOL_VERSION_hsc2hs +#define TOOL_VERSION_hsc2hs "0.68.8" +#endif /* TOOL_VERSION_hsc2hs */ +#ifndef MIN_TOOL_VERSION_hsc2hs +#define MIN_TOOL_VERSION_hsc2hs(major1,major2,minor) (\ + (major1) < 0 || \ + (major1) == 0 && (major2) < 68 || \ + (major1) == 0 && (major2) == 68 && (minor) <= 8) +#endif /* MIN_TOOL_VERSION_hsc2hs */ +/* tool pkg-config-2.1.1 */ +#ifndef TOOL_VERSION_pkg_config +#define TOOL_VERSION_pkg_config "2.1.1" +#endif /* TOOL_VERSION_pkg_config */ +#ifndef MIN_TOOL_VERSION_pkg_config +#define MIN_TOOL_VERSION_pkg_config(major1,major2,minor) (\ + (major1) < 2 || \ + (major1) == 2 && (major2) < 1 || \ + (major1) == 2 && (major2) == 1 && (minor) <= 1) +#endif /* MIN_TOOL_VERSION_pkg_config */ +/* tool runghc-9.2.8 */ +#ifndef TOOL_VERSION_runghc +#define TOOL_VERSION_runghc "9.2.8" +#endif /* TOOL_VERSION_runghc */ +#ifndef MIN_TOOL_VERSION_runghc +#define MIN_TOOL_VERSION_runghc(major1,major2,minor) (\ + (major1) < 9 || \ + (major1) == 9 && (major2) < 2 || \ + (major1) == 9 && (major2) == 2 && (minor) <= 8) +#endif /* MIN_TOOL_VERSION_runghc */ +/* tool strip-2.43 */ +#ifndef TOOL_VERSION_strip +#define TOOL_VERSION_strip "2.43" +#endif /* TOOL_VERSION_strip */ +#ifndef MIN_TOOL_VERSION_strip +#define MIN_TOOL_VERSION_strip(major1,major2,minor) (\ + (major1) < 2 || \ + (major1) == 2 && (major2) < 43 || \ + (major1) == 2 && (major2) == 43 && (minor) <= 0) +#endif /* MIN_TOOL_VERSION_strip */ + +#ifndef CURRENT_COMPONENT_ID +#define CURRENT_COMPONENT_ID "a4-1.0.0.0-inplace-a4-test" +#endif /* CURRENT_COMPONENT_ID */ +#ifndef CURRENT_PACKAGE_VERSION +#define CURRENT_PACKAGE_VERSION "1.0.0.0" +#endif /* CURRENT_PACKAGE_VERSION */ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/cache/build b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/cache/build new file mode 100644 index 0000000..4c2fe68 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/cache/build differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/cache/config b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/cache/config new file mode 100644 index 0000000..f2b2c31 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/cache/config differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/package.conf.inplace/package.cache b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/package.conf.inplace/package.cache new file mode 100644 index 0000000..b3cae5c Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/package.conf.inplace/package.cache differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/package.conf.inplace/package.cache.lock b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/package.conf.inplace/package.cache.lock new file mode 100644 index 0000000..e69de29 diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/setup-config b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/setup-config new file mode 100644 index 0000000..a262e15 Binary files /dev/null and b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/setup-config differ diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/test/a4-1.0.0.0-a4-test.log b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/test/a4-1.0.0.0-a4-test.log new file mode 100644 index 0000000..d58be45 --- /dev/null +++ b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/test/a4-1.0.0.0-a4-test.log @@ -0,0 +1,3 @@ +Test suite a4-test: RUNNING... +Test suite a4-test: PASS +Test suite logged to: /home/nikolaj/Code/KU/2024B1-AP/assignments/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/test/a4-1.0.0.0-a4-test.log diff --git a/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/test/a4-1.0.0.0.log b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/test/a4-1.0.0.0.log new file mode 100644 index 0000000..c34a31a --- /dev/null +++ b/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/test/a4-1.0.0.0.log @@ -0,0 +1 @@ +PackageLog {package = PackageIdentifier {pkgName = PackageName "a4", pkgVersion = mkVersion [1,0,0,0]}, compiler = CompilerId GHC (mkVersion [9,2,8]), platform = Platform X86_64 Linux, testSuites = [TestSuiteLog {testSuiteName = UnqualComponentName "a4-test", testLogs = TestLog {testName = "a4-test", testOptionsReturned = [], testResult = Pass}, logFile = "/home/nikolaj/Code/KU/2024B1-AP/assignments/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/test/a4-1.0.0.0-a4-test.log"}]} \ No newline at end of file diff --git a/a4/dist-newstyle/cache/compiler b/a4/dist-newstyle/cache/compiler new file mode 100644 index 0000000..8dd86ee Binary files /dev/null and b/a4/dist-newstyle/cache/compiler differ diff --git a/a4/dist-newstyle/cache/config b/a4/dist-newstyle/cache/config new file mode 100644 index 0000000..68c7049 Binary files /dev/null and b/a4/dist-newstyle/cache/config differ diff --git a/a4/dist-newstyle/cache/elaborated-plan b/a4/dist-newstyle/cache/elaborated-plan new file mode 100644 index 0000000..cb51390 Binary files /dev/null and b/a4/dist-newstyle/cache/elaborated-plan differ diff --git a/a4/dist-newstyle/cache/improved-plan b/a4/dist-newstyle/cache/improved-plan new file mode 100644 index 0000000..3aac74d Binary files /dev/null and b/a4/dist-newstyle/cache/improved-plan differ diff --git a/a4/dist-newstyle/cache/plan.json b/a4/dist-newstyle/cache/plan.json new file mode 100644 index 0000000..4355b08 --- /dev/null +++ b/a4/dist-newstyle/cache/plan.json @@ -0,0 +1 @@ +{"cabal-version":"3.12.1.0","cabal-lib-version":"3.12.1.0","compiler-id":"ghc-9.2.8","os":"linux","arch":"x86_64","install-plan":[{"type":"configured","id":"a4-1.0.0.0-inplace","pkg-name":"a4","pkg-version":"1.0.0.0","flags":{},"style":"local","pkg-src":{"type":"local","path":"/home/nikolaj/Code/KU/2024B1-AP/assignments/a4/."},"dist-dir":"/home/nikolaj/Code/KU/2024B1-AP/assignments/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0","build-info":"/home/nikolaj/Code/KU/2024B1-AP/assignments/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build-info.json","depends":["base-4.16.4.0","directory-1.3.6.2","process-1.6.16.0","tasty-1.5-9c8bfa897c4bbbd45db59166bf8822fd731902e914b534b6a833c6ed622f52af","tasty-hunit-0.10.2-e3418cb0d0858b924fc6872fee2cea6b263d1c0a41eb00025dc20a99cba863f6"],"exe-depends":[],"component-name":"lib"},{"type":"configured","id":"a4-1.0.0.0-inplace-a4-test","pkg-name":"a4","pkg-version":"1.0.0.0","flags":{},"style":"local","pkg-src":{"type":"local","path":"/home/nikolaj/Code/KU/2024B1-AP/assignments/a4/."},"dist-dir":"/home/nikolaj/Code/KU/2024B1-AP/assignments/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test","build-info":"/home/nikolaj/Code/KU/2024B1-AP/assignments/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build-info.json","depends":["a4-1.0.0.0-inplace","base-4.16.4.0","tasty-1.5-9c8bfa897c4bbbd45db59166bf8822fd731902e914b534b6a833c6ed622f52af"],"exe-depends":[],"component-name":"test:a4-test","bin-file":"/home/nikolaj/Code/KU/2024B1-AP/assignments/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/t/a4-test/build/a4-test/a4-test"},{"type":"configured","id":"ansi-terminal-1.1.1-a310ba3f6873f33f2e0b62f019c3a0e094e4880d99ffe33dea8cc3540173c20d","pkg-name":"ansi-terminal","pkg-version":"1.1.1","flags":{"example":false},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"5b3e9228323416a1962d5948b18f9eff8569ad94a368e15f0e6104128783f572","pkg-src-sha256":"7e448fcdf8a5a97f3d30e5168f834641df9945fafa65f2e87d73ff9556a1bc4c","depends":["ansi-terminal-types-1.1-de0d9944f2a71db2aa9c642f6d4eecaaf6274e2bb3d1ca13d6e5acb22267b82a","base-4.16.4.0","colour-2.3.6-da21b0778b8ee400b7b41504a069012d6a571b1bbdf970c88af02431ec232de5"],"exe-depends":[],"component-name":"lib"},{"type":"configured","id":"ansi-terminal-types-1.1-de0d9944f2a71db2aa9c642f6d4eecaaf6274e2bb3d1ca13d6e5acb22267b82a","pkg-name":"ansi-terminal-types","pkg-version":"1.1","flags":{},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"135f6a381afa19d53d0a3fe40b6dd47e6666c538b09e4300fbb1438759df3248","pkg-src-sha256":"f2e5333eb78da5f4dd330fca0c81a59276cc150c625647cd20f57b7f297a5d25","depends":["base-4.16.4.0","colour-2.3.6-da21b0778b8ee400b7b41504a069012d6a571b1bbdf970c88af02431ec232de5"],"exe-depends":[],"component-name":"lib"},{"type":"pre-existing","id":"array-0.5.4.0","pkg-name":"array","pkg-version":"0.5.4.0","depends":["base-4.16.4.0"]},{"type":"pre-existing","id":"base-4.16.4.0","pkg-name":"base","pkg-version":"4.16.4.0","depends":["ghc-bignum-1.2","ghc-prim-0.8.0","rts-1.0.2"]},{"type":"pre-existing","id":"binary-0.8.9.0","pkg-name":"binary","pkg-version":"0.8.9.0","depends":["array-0.5.4.0","base-4.16.4.0","bytestring-0.11.4.0","containers-0.6.5.1"]},{"type":"pre-existing","id":"bytestring-0.11.4.0","pkg-name":"bytestring","pkg-version":"0.11.4.0","depends":["base-4.16.4.0","deepseq-1.4.6.1","ghc-prim-0.8.0","template-haskell-2.18.0.0"]},{"type":"configured","id":"call-stack-0.4.0-9e69d84a2e7b76054d5195955c926fd4f70262e3a677c36bbcd9402102b8289c","pkg-name":"call-stack","pkg-version":"0.4.0","flags":{},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"ac44d2c00931dc20b01750da8c92ec443eb63a7231e8550188cb2ac2385f7feb","pkg-src-sha256":"430bcf8a3404f7e55319573c0b807b1356946f0c8f289bb3d9afb279c636b87b","depends":["base-4.16.4.0"],"exe-depends":[],"component-name":"lib"},{"type":"configured","id":"colour-2.3.6-da21b0778b8ee400b7b41504a069012d6a571b1bbdf970c88af02431ec232de5","pkg-name":"colour","pkg-version":"2.3.6","flags":{},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"ebdcbf15023958838a527e381ab3c3b1e99ed12d1b25efeb7feaa4ad8c37664a","pkg-src-sha256":"2cd35dcd6944a5abc9f108a5eb5ee564b6b1fa98a9ec79cefcc20b588991f871","depends":["base-4.16.4.0"],"exe-depends":[],"component-name":"lib"},{"type":"pre-existing","id":"containers-0.6.5.1","pkg-name":"containers","pkg-version":"0.6.5.1","depends":["array-0.5.4.0","base-4.16.4.0","deepseq-1.4.6.1"]},{"type":"pre-existing","id":"deepseq-1.4.6.1","pkg-name":"deepseq","pkg-version":"1.4.6.1","depends":["array-0.5.4.0","base-4.16.4.0"]},{"type":"pre-existing","id":"directory-1.3.6.2","pkg-name":"directory","pkg-version":"1.3.6.2","depends":["base-4.16.4.0","filepath-1.4.2.2","time-1.11.1.1","unix-2.7.2.2"]},{"type":"pre-existing","id":"filepath-1.4.2.2","pkg-name":"filepath","pkg-version":"1.4.2.2","depends":["base-4.16.4.0"]},{"type":"pre-existing","id":"ghc-bignum-1.2","pkg-name":"ghc-bignum","pkg-version":"1.2","depends":["ghc-prim-0.8.0"]},{"type":"pre-existing","id":"ghc-boot-th-9.2.8","pkg-name":"ghc-boot-th","pkg-version":"9.2.8","depends":["base-4.16.4.0"]},{"type":"pre-existing","id":"ghc-prim-0.8.0","pkg-name":"ghc-prim","pkg-version":"0.8.0","depends":["rts-1.0.2"]},{"type":"configured","id":"optparse-applicative-0.18.1.0-c6d02e3ed60a0f4bb4a7ab84ae252652c38beb3037e87b813d773407522b54fe","pkg-name":"optparse-applicative","pkg-version":"0.18.1.0","flags":{"process":true},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"b4cf8d9018e5e67cb1f14edb5130b6d05ad8bc1b5f6bd4efaa6ec0b7f28f559d","pkg-src-sha256":"63811ab4fd26e829b8868364325a88be3acc79819f5bb5005b2dd3b961ecc491","depends":["base-4.16.4.0","prettyprinter-1.7.1-e9cf1d8deb16881940e89f9b90fb36a81bd545d505ecece5a253b216d2a14495","prettyprinter-ansi-terminal-1.1.3-d5f63d4c6e50049f7c522c895388f1930f65db03fb1f093dd107c7f552482ad4","process-1.6.16.0","text-1.2.5.0","transformers-0.5.6.2","transformers-compat-0.7.2-99526c5799fa7da40f8934aafc435ad6216712fef80aa46c4d9e70eb982f081e"],"exe-depends":[],"component-name":"lib"},{"type":"pre-existing","id":"pretty-1.1.3.6","pkg-name":"pretty","pkg-version":"1.1.3.6","depends":["base-4.16.4.0","deepseq-1.4.6.1","ghc-prim-0.8.0"]},{"type":"configured","id":"prettyprinter-1.7.1-e9cf1d8deb16881940e89f9b90fb36a81bd545d505ecece5a253b216d2a14495","pkg-name":"prettyprinter","pkg-version":"1.7.1","flags":{"buildreadme":false,"text":true},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"9c43c9d8c3cd9f445596e5a2379574bba87f935a4d1fa41b5407ee3cf4edc743","pkg-src-sha256":"5e6ea6903114fa118fcc359633dfb7ecddecb92c06c853d02a77b72b251f0b45","depends":["base-4.16.4.0","text-1.2.5.0"],"exe-depends":[],"component-name":"lib"},{"type":"configured","id":"prettyprinter-ansi-terminal-1.1.3-d5f63d4c6e50049f7c522c895388f1930f65db03fb1f093dd107c7f552482ad4","pkg-name":"prettyprinter-ansi-terminal","pkg-version":"1.1.3","flags":{},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"b00f727b964cf13adff7acf575a71fa7e405f5240aff50b07f10df76ab89f8d3","pkg-src-sha256":"813739308ad6050620578994effe21058a170a341716acf52573fae42b5b1db3","depends":["ansi-terminal-1.1.1-a310ba3f6873f33f2e0b62f019c3a0e094e4880d99ffe33dea8cc3540173c20d","base-4.16.4.0","prettyprinter-1.7.1-e9cf1d8deb16881940e89f9b90fb36a81bd545d505ecece5a253b216d2a14495","text-1.2.5.0"],"exe-depends":[],"component-name":"lib"},{"type":"pre-existing","id":"process-1.6.16.0","pkg-name":"process","pkg-version":"1.6.16.0","depends":["base-4.16.4.0","deepseq-1.4.6.1","directory-1.3.6.2","filepath-1.4.2.2","unix-2.7.2.2"]},{"type":"pre-existing","id":"rts-1.0.2","pkg-name":"rts","pkg-version":"1.0.2","depends":[]},{"type":"pre-existing","id":"stm-2.5.0.2","pkg-name":"stm","pkg-version":"2.5.0.2","depends":["array-0.5.4.0","base-4.16.4.0"]},{"type":"configured","id":"tagged-0.8.8-df257b422c4a60d9786343bf0d257fdbcf28708fe7b685154c2977ca9e659d5a","pkg-name":"tagged","pkg-version":"0.8.8","flags":{"deepseq":true,"transformers":true},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"9193defbde3dda997236ccc11a1db3e073cc531fe523e13e9659df776feb0b32","pkg-src-sha256":"a083fa7835516203c168433a1c8dfc0290a94b05fedab566ad0640fc9137a6a7","depends":["base-4.16.4.0","deepseq-1.4.6.1","template-haskell-2.18.0.0","transformers-0.5.6.2"],"exe-depends":[],"component-name":"lib"},{"type":"configured","id":"tasty-1.5-9c8bfa897c4bbbd45db59166bf8822fd731902e914b534b6a833c6ed622f52af","pkg-name":"tasty","pkg-version":"1.5","flags":{"unix":true},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"8da3f47fff790714f7d676692f1207aac156b41f705c55f14d1d8147a751264b","pkg-src-sha256":"ca5cf7852a210e691d4dce67ee34de7ccb8ae390a3a68ecffde307e326d029ac","depends":["ansi-terminal-1.1.1-a310ba3f6873f33f2e0b62f019c3a0e094e4880d99ffe33dea8cc3540173c20d","base-4.16.4.0","containers-0.6.5.1","optparse-applicative-0.18.1.0-c6d02e3ed60a0f4bb4a7ab84ae252652c38beb3037e87b813d773407522b54fe","stm-2.5.0.2","tagged-0.8.8-df257b422c4a60d9786343bf0d257fdbcf28708fe7b685154c2977ca9e659d5a","transformers-0.5.6.2","unix-2.7.2.2"],"exe-depends":[],"component-name":"lib"},{"type":"configured","id":"tasty-hunit-0.10.2-e3418cb0d0858b924fc6872fee2cea6b263d1c0a41eb00025dc20a99cba863f6","pkg-name":"tasty-hunit","pkg-version":"0.10.2","flags":{},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"22bc1122e8256664d7cb1e44c6bcace95676c523179947bf2403db71af43dc6d","pkg-src-sha256":"5af01fa7c1ef98b324da062e36f79986a8b1b83ff0cf6fd53f95d976b41e03f6","depends":["base-4.16.4.0","call-stack-0.4.0-9e69d84a2e7b76054d5195955c926fd4f70262e3a677c36bbcd9402102b8289c","tasty-1.5-9c8bfa897c4bbbd45db59166bf8822fd731902e914b534b6a833c6ed622f52af"],"exe-depends":[],"component-name":"lib"},{"type":"pre-existing","id":"template-haskell-2.18.0.0","pkg-name":"template-haskell","pkg-version":"2.18.0.0","depends":["base-4.16.4.0","ghc-boot-th-9.2.8","ghc-prim-0.8.0","pretty-1.1.3.6"]},{"type":"pre-existing","id":"text-1.2.5.0","pkg-name":"text","pkg-version":"1.2.5.0","depends":["array-0.5.4.0","base-4.16.4.0","binary-0.8.9.0","bytestring-0.11.4.0","deepseq-1.4.6.1","ghc-prim-0.8.0","template-haskell-2.18.0.0"]},{"type":"pre-existing","id":"time-1.11.1.1","pkg-name":"time","pkg-version":"1.11.1.1","depends":["base-4.16.4.0","deepseq-1.4.6.1"]},{"type":"pre-existing","id":"transformers-0.5.6.2","pkg-name":"transformers","pkg-version":"0.5.6.2","depends":["base-4.16.4.0"]},{"type":"configured","id":"transformers-compat-0.7.2-99526c5799fa7da40f8934aafc435ad6216712fef80aa46c4d9e70eb982f081e","pkg-name":"transformers-compat","pkg-version":"0.7.2","flags":{"five":false,"five-three":true,"four":false,"generic-deriving":true,"mtl":true,"three":false,"two":false},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"044fb9955f63ee138fcebedfdcbe54afe741f2d5892a2d0bdf3a8052bd342643","pkg-src-sha256":"b62c7304c9f3cbc9463d0739aa85cb9489f217ea092b9d625d417514fbcc9d6a","depends":["base-4.16.4.0","ghc-prim-0.8.0","transformers-0.5.6.2"],"exe-depends":[],"component-name":"lib"},{"type":"pre-existing","id":"unix-2.7.2.2","pkg-name":"unix","pkg-version":"2.7.2.2","depends":["base-4.16.4.0","bytestring-0.11.4.0","time-1.11.1.1"]}]} \ No newline at end of file diff --git a/a4/dist-newstyle/cache/solver-plan b/a4/dist-newstyle/cache/solver-plan new file mode 100644 index 0000000..5bf0373 Binary files /dev/null and b/a4/dist-newstyle/cache/solver-plan differ diff --git a/a4/dist-newstyle/cache/source-hashes b/a4/dist-newstyle/cache/source-hashes new file mode 100644 index 0000000..1670c70 Binary files /dev/null and b/a4/dist-newstyle/cache/source-hashes differ diff --git a/a4/dist-newstyle/cache/up-to-date b/a4/dist-newstyle/cache/up-to-date new file mode 100644 index 0000000..a3e213d Binary files /dev/null and b/a4/dist-newstyle/cache/up-to-date differ diff --git a/a4/dist-newstyle/packagedb/ghc-9.2.8/a4-1.0.0.0-inplace.conf b/a4/dist-newstyle/packagedb/ghc-9.2.8/a4-1.0.0.0-inplace.conf new file mode 100644 index 0000000..9096fd7 --- /dev/null +++ b/a4/dist-newstyle/packagedb/ghc-9.2.8/a4-1.0.0.0-inplace.conf @@ -0,0 +1,32 @@ +name: a4 +version: 1.0.0.0 +visibility: public +id: a4-1.0.0.0-inplace +key: a4-1.0.0.0-inplace +abi: inplace +exposed: True +exposed-modules: + APL.AST APL.Eval APL.InterpIO APL.InterpPure APL.Interp_Tests + APL.Monad APL.Util + +import-dirs: + /home/nikolaj/Code/KU/2024B1-AP/assignments/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build + +library-dirs: + /home/nikolaj/Code/KU/2024B1-AP/assignments/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build + +dynamic-library-dirs: + /home/nikolaj/Code/KU/2024B1-AP/assignments/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/build + +data-dir: /home/nikolaj/Code/KU/2024B1-AP/assignments/a4/. +hs-libraries: HSa4-1.0.0.0-inplace +depends: + base-4.16.4.0 directory-1.3.6.2 process-1.6.16.0 + tasty-1.5-9c8bfa897c4bbbd45db59166bf8822fd731902e914b534b6a833c6ed622f52af + tasty-hunit-0.10.2-e3418cb0d0858b924fc6872fee2cea6b263d1c0a41eb00025dc20a99cba863f6 + +haddock-interfaces: + /home/nikolaj/Code/KU/2024B1-AP/assignments/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/doc/html/a4/a4.haddock + +haddock-html: + /home/nikolaj/Code/KU/2024B1-AP/assignments/a4/dist-newstyle/build/x86_64-linux/ghc-9.2.8/a4-1.0.0.0/doc/html/a4 diff --git a/a4/dist-newstyle/packagedb/ghc-9.2.8/package.cache b/a4/dist-newstyle/packagedb/ghc-9.2.8/package.cache new file mode 100644 index 0000000..11b8619 Binary files /dev/null and b/a4/dist-newstyle/packagedb/ghc-9.2.8/package.cache differ diff --git a/a4/dist-newstyle/packagedb/ghc-9.2.8/package.cache.lock b/a4/dist-newstyle/packagedb/ghc-9.2.8/package.cache.lock new file mode 100644 index 0000000..e69de29 diff --git a/a4/src/APL/InterpPure.hs b/a4/src/APL/InterpPure.hs index d084feb..5a39474 100644 --- a/a4/src/APL/InterpPure.hs +++ b/a4/src/APL/InterpPure.hs @@ -13,4 +13,8 @@ runEval = runEval' envEmpty stateInitial runEval' r s (Free (PrintOp p m)) = let (ps, res) = runEval' r s m in (p : ps, res) + runEval' r s (Free (TryCatchOp m l)) = + case (runEval' r s m) of + (_, Left e) -> runEval' r s l + a -> a runEval' _ _ (Free (ErrorOp e)) = ([], Left e) diff --git a/a4/src/APL/Interp_Tests.hs b/a4/src/APL/Interp_Tests.hs index 66fc71e..7cb5525 100644 --- a/a4/src/APL/Interp_Tests.hs +++ b/a4/src/APL/Interp_Tests.hs @@ -65,6 +65,22 @@ pureTests = -- testCase "Div0" $ eval' (Div (CstInt 7) (CstInt 0)) + @?= ([], Left "Division by zero"), + -- + testCase "TryCatch try1" $ + eval' (TryCatch (CstInt 1) (CstInt 2)) + @?= ([], Right (ValInt 1)), + -- + testCase "TryCatch try2" $ + eval' (TryCatch (CstInt 1) (Div (CstInt 1) (CstInt 0))) + @?= ([], Right (ValInt 1)), + -- + testCase "TryCatch catch1" $ + eval' (TryCatch (Div (CstInt 1) (CstInt 0)) (CstInt 1)) + @?= ([], Right (ValInt 1)), + -- + testCase "TryCatch catch1" $ + eval' (TryCatch (Div (CstInt 1) (CstInt 0)) (Div (CstInt 1) (CstInt 0))) @?= ([], Left "Division by zero") ]