Skip to content

Commit b43c5ca

Browse files
committed
day_05 1
1 parent 743b92b commit b43c5ca

File tree

26 files changed

+1620
-5
lines changed

26 files changed

+1620
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{-# LANGUAGE NoRebindableSyntax #-}
2+
{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
3+
{-# OPTIONS_GHC -w #-}
4+
module PackageInfo_day04 (
5+
name,
6+
version,
7+
synopsis,
8+
copyright,
9+
homepage,
10+
) where
11+
12+
import Data.Version (Version(..))
13+
import Prelude
14+
15+
name :: String
16+
name = "day04"
17+
version :: Version
18+
version = Version [0,1,0,0] []
19+
20+
synopsis :: String
21+
synopsis = ""
22+
copyright :: String
23+
copyright = ""
24+
homepage :: String
25+
homepage = ""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{-# LANGUAGE CPP #-}
2+
{-# LANGUAGE NoRebindableSyntax #-}
3+
#if __GLASGOW_HASKELL__ >= 810
4+
{-# OPTIONS_GHC -Wno-prepositive-qualified-module #-}
5+
#endif
6+
{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
7+
{-# OPTIONS_GHC -w #-}
8+
module Paths_day04 (
9+
version,
10+
getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir,
11+
getDataFileName, getSysconfDir
12+
) where
13+
14+
15+
import qualified Control.Exception as Exception
16+
import qualified Data.List as List
17+
import Data.Version (Version(..))
18+
import System.Environment (getEnv)
19+
import Prelude
20+
21+
22+
#if defined(VERSION_base)
23+
24+
#if MIN_VERSION_base(4,0,0)
25+
catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a
26+
#else
27+
catchIO :: IO a -> (Exception.Exception -> IO a) -> IO a
28+
#endif
29+
30+
#else
31+
catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a
32+
#endif
33+
catchIO = Exception.catch
34+
35+
version :: Version
36+
version = Version [0,1,0,0] []
37+
38+
getDataFileName :: FilePath -> IO FilePath
39+
getDataFileName name = do
40+
dir <- getDataDir
41+
return (dir `joinFileName` name)
42+
43+
getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath
44+
45+
46+
47+
48+
bindir, libdir, dynlibdir, datadir, libexecdir, sysconfdir :: FilePath
49+
bindir = "/home/gezaa/.cabal/bin"
50+
libdir = "/home/gezaa/.cabal/lib/x86_64-linux-ghc-9.6.6/day04-0.1.0.0-inplace-day04"
51+
dynlibdir = "/home/gezaa/.cabal/lib/x86_64-linux-ghc-9.6.6"
52+
datadir = "/home/gezaa/.cabal/share/x86_64-linux-ghc-9.6.6/day04-0.1.0.0"
53+
libexecdir = "/home/gezaa/.cabal/libexec/x86_64-linux-ghc-9.6.6/day04-0.1.0.0"
54+
sysconfdir = "/home/gezaa/.cabal/etc"
55+
56+
getBinDir = catchIO (getEnv "day04_bindir") (\_ -> return bindir)
57+
getLibDir = catchIO (getEnv "day04_libdir") (\_ -> return libdir)
58+
getDynLibDir = catchIO (getEnv "day04_dynlibdir") (\_ -> return dynlibdir)
59+
getDataDir = catchIO (getEnv "day04_datadir") (\_ -> return datadir)
60+
getLibexecDir = catchIO (getEnv "day04_libexecdir") (\_ -> return libexecdir)
61+
getSysconfDir = catchIO (getEnv "day04_sysconfdir") (\_ -> return sysconfdir)
62+
63+
64+
65+
joinFileName :: String -> String -> FilePath
66+
joinFileName "" fname = fname
67+
joinFileName "." fname = fname
68+
joinFileName dir "" = dir
69+
joinFileName dir fname
70+
| isPathSeparator (List.last dir) = dir ++ fname
71+
| otherwise = dir ++ pathSeparator : fname
72+
73+
pathSeparator :: Char
74+
pathSeparator = '/'
75+
76+
isPathSeparator :: Char -> Bool
77+
isPathSeparator c = c == '/'
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
/* DO NOT EDIT: This file is automatically generated by Cabal */
2+
3+
/* package day04-0.1.0.0 */
4+
#ifndef VERSION_day04
5+
#define VERSION_day04 "0.1.0.0"
6+
#endif /* VERSION_day04 */
7+
#ifndef MIN_VERSION_day04
8+
#define MIN_VERSION_day04(major1,major2,minor) (\
9+
(major1) < 0 || \
10+
(major1) == 0 && (major2) < 1 || \
11+
(major1) == 0 && (major2) == 1 && (minor) <= 0)
12+
#endif /* MIN_VERSION_day04 */
13+
/* package base-4.18.2.1 */
14+
#ifndef VERSION_base
15+
#define VERSION_base "4.18.2.1"
16+
#endif /* VERSION_base */
17+
#ifndef MIN_VERSION_base
18+
#define MIN_VERSION_base(major1,major2,minor) (\
19+
(major1) < 4 || \
20+
(major1) == 4 && (major2) < 18 || \
21+
(major1) == 4 && (major2) == 18 && (minor) <= 2)
22+
#endif /* MIN_VERSION_base */
23+
24+
/* tool gcc-13.3.0 */
25+
#ifndef TOOL_VERSION_gcc
26+
#define TOOL_VERSION_gcc "13.3.0"
27+
#endif /* TOOL_VERSION_gcc */
28+
#ifndef MIN_TOOL_VERSION_gcc
29+
#define MIN_TOOL_VERSION_gcc(major1,major2,minor) (\
30+
(major1) < 13 || \
31+
(major1) == 13 && (major2) < 3 || \
32+
(major1) == 13 && (major2) == 3 && (minor) <= 0)
33+
#endif /* MIN_TOOL_VERSION_gcc */
34+
/* tool ghc-9.6.6 */
35+
#ifndef TOOL_VERSION_ghc
36+
#define TOOL_VERSION_ghc "9.6.6"
37+
#endif /* TOOL_VERSION_ghc */
38+
#ifndef MIN_TOOL_VERSION_ghc
39+
#define MIN_TOOL_VERSION_ghc(major1,major2,minor) (\
40+
(major1) < 9 || \
41+
(major1) == 9 && (major2) < 6 || \
42+
(major1) == 9 && (major2) == 6 && (minor) <= 6)
43+
#endif /* MIN_TOOL_VERSION_ghc */
44+
/* tool ghc-pkg-9.6.6 */
45+
#ifndef TOOL_VERSION_ghc_pkg
46+
#define TOOL_VERSION_ghc_pkg "9.6.6"
47+
#endif /* TOOL_VERSION_ghc_pkg */
48+
#ifndef MIN_TOOL_VERSION_ghc_pkg
49+
#define MIN_TOOL_VERSION_ghc_pkg(major1,major2,minor) (\
50+
(major1) < 9 || \
51+
(major1) == 9 && (major2) < 6 || \
52+
(major1) == 9 && (major2) == 6 && (minor) <= 6)
53+
#endif /* MIN_TOOL_VERSION_ghc_pkg */
54+
/* tool haddock-2.29.2 */
55+
#ifndef TOOL_VERSION_haddock
56+
#define TOOL_VERSION_haddock "2.29.2"
57+
#endif /* TOOL_VERSION_haddock */
58+
#ifndef MIN_TOOL_VERSION_haddock
59+
#define MIN_TOOL_VERSION_haddock(major1,major2,minor) (\
60+
(major1) < 2 || \
61+
(major1) == 2 && (major2) < 29 || \
62+
(major1) == 2 && (major2) == 29 && (minor) <= 2)
63+
#endif /* MIN_TOOL_VERSION_haddock */
64+
/* tool hpc-0.68 */
65+
#ifndef TOOL_VERSION_hpc
66+
#define TOOL_VERSION_hpc "0.68"
67+
#endif /* TOOL_VERSION_hpc */
68+
#ifndef MIN_TOOL_VERSION_hpc
69+
#define MIN_TOOL_VERSION_hpc(major1,major2,minor) (\
70+
(major1) < 0 || \
71+
(major1) == 0 && (major2) < 68 || \
72+
(major1) == 0 && (major2) == 68 && (minor) <= 0)
73+
#endif /* MIN_TOOL_VERSION_hpc */
74+
/* tool hsc2hs-0.68.9 */
75+
#ifndef TOOL_VERSION_hsc2hs
76+
#define TOOL_VERSION_hsc2hs "0.68.9"
77+
#endif /* TOOL_VERSION_hsc2hs */
78+
#ifndef MIN_TOOL_VERSION_hsc2hs
79+
#define MIN_TOOL_VERSION_hsc2hs(major1,major2,minor) (\
80+
(major1) < 0 || \
81+
(major1) == 0 && (major2) < 68 || \
82+
(major1) == 0 && (major2) == 68 && (minor) <= 9)
83+
#endif /* MIN_TOOL_VERSION_hsc2hs */
84+
/* tool runghc-9.6.6 */
85+
#ifndef TOOL_VERSION_runghc
86+
#define TOOL_VERSION_runghc "9.6.6"
87+
#endif /* TOOL_VERSION_runghc */
88+
#ifndef MIN_TOOL_VERSION_runghc
89+
#define MIN_TOOL_VERSION_runghc(major1,major2,minor) (\
90+
(major1) < 9 || \
91+
(major1) == 9 && (major2) < 6 || \
92+
(major1) == 9 && (major2) == 6 && (minor) <= 6)
93+
#endif /* MIN_TOOL_VERSION_runghc */
94+
/* tool strip-2.43 */
95+
#ifndef TOOL_VERSION_strip
96+
#define TOOL_VERSION_strip "2.43"
97+
#endif /* TOOL_VERSION_strip */
98+
#ifndef MIN_TOOL_VERSION_strip
99+
#define MIN_TOOL_VERSION_strip(major1,major2,minor) (\
100+
(major1) < 2 || \
101+
(major1) == 2 && (major2) < 43 || \
102+
(major1) == 2 && (major2) == 43 && (minor) <= 0)
103+
#endif /* MIN_TOOL_VERSION_strip */
104+
105+
#ifndef CURRENT_COMPONENT_ID
106+
#define CURRENT_COMPONENT_ID "day04-0.1.0.0-inplace-day04"
107+
#endif /* CURRENT_COMPONENT_ID */
108+
#ifndef CURRENT_PACKAGE_VERSION
109+
#define CURRENT_PACKAGE_VERSION "0.1.0.0"
110+
#endif /* CURRENT_PACKAGE_VERSION */
Binary file not shown.

0 commit comments

Comments
 (0)