init
This commit is contained in:
commit
7008596f4c
58 changed files with 1197 additions and 0 deletions
|
|
@ -0,0 +1,46 @@
|
|||
{-# LANGUAGE NoRebindableSyntax #-}
|
||||
{-# OPTIONS_GHC -Wno-missing-import-lists #-}
|
||||
{-# OPTIONS_GHC -w #-}
|
||||
|
||||
{-|
|
||||
Module : PackageInfo_example
|
||||
Description : Contents of some of the package's Cabal file's fields.
|
||||
|
||||
WARNING: This module was generated by Cabal. Any modifications will be
|
||||
overwritten if the module is regenerated.
|
||||
|
||||
This module exports values that record information from some of the fields of
|
||||
the package's Cabal package description file (Cabal file).
|
||||
|
||||
For further information about the fields in a Cabal file, see the Cabal User
|
||||
Guide.
|
||||
-}
|
||||
|
||||
module PackageInfo_example (
|
||||
name,
|
||||
version,
|
||||
synopsis,
|
||||
copyright,
|
||||
homepage,
|
||||
) where
|
||||
|
||||
import Data.Version (Version(..))
|
||||
import Prelude
|
||||
|
||||
-- |The content of the @name@ field of the package's Cabal file, but with any
|
||||
-- hyphen characters replaced by underscore characters.
|
||||
name :: String
|
||||
name = "example"
|
||||
-- |The content of the @version@ field of the package's Cabal file.
|
||||
version :: Version
|
||||
version = Version [0,1,0,0] []
|
||||
|
||||
-- |The content of the @synopsis@ field of the package's Cabal file.
|
||||
synopsis :: String
|
||||
synopsis = ""
|
||||
-- |The content of the @copyright@ field of the package's Cabal file.
|
||||
copyright :: String
|
||||
copyright = ""
|
||||
-- |The content of the @homepage@ field of the package's Cabal file.
|
||||
homepage :: String
|
||||
homepage = ""
|
||||
|
|
@ -0,0 +1,132 @@
|
|||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE NoRebindableSyntax #-}
|
||||
#if __GLASGOW_HASKELL__ >= 810
|
||||
{-# OPTIONS_GHC -Wno-prepositive-qualified-module #-}
|
||||
#endif
|
||||
{-# OPTIONS_GHC -Wno-missing-import-lists #-}
|
||||
{-# OPTIONS_GHC -w #-}
|
||||
|
||||
{-|
|
||||
Module : Paths_example
|
||||
Description : Data file location, and package version and installation
|
||||
directories.
|
||||
|
||||
WARNING: This module was generated by Cabal. Any modifications will be
|
||||
overwritten if the module is regenerated.
|
||||
|
||||
This module exports a function to locate data files, and values that record
|
||||
the version of the package and some directories which the package has been
|
||||
configured to be installed into.
|
||||
|
||||
For further information about Cabal's options for its configuration step, and
|
||||
their default values, see the Cabal User Guide.
|
||||
-}
|
||||
|
||||
module Paths_example (
|
||||
version,
|
||||
getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir,
|
||||
getDataFileName, getSysconfDir
|
||||
) where
|
||||
|
||||
|
||||
import qualified Control.Exception as Exception
|
||||
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
|
||||
|
||||
-- |The package version.
|
||||
version :: Version
|
||||
version = Version [0,1,0,0] []
|
||||
|
||||
-- |If the argument is a filename, the result is the name of a corresponding
|
||||
-- file on the system on which the program is running, if the file were listed
|
||||
-- in the @data-files@ field of the package's Cabal package description file.
|
||||
-- No check is performed that the given filename is listed in that field.
|
||||
getDataFileName :: FilePath -> IO FilePath
|
||||
getDataFileName name = do
|
||||
dir <- getDataDir
|
||||
return (dir `joinFileName` name)
|
||||
|
||||
-- |The location of the directory specified by Cabal's @--bindir@ option (where
|
||||
-- executables that the user might invoke are installed). This can be overridden
|
||||
-- at runtime using the environment variable example_bindir.
|
||||
getBinDir :: IO FilePath
|
||||
|
||||
-- |The location of the directory specified by Cabal's @--libdir@ option (where
|
||||
-- object libraries are installed). This can be overridden at runtime using the
|
||||
-- environment variable example_libdir.
|
||||
getLibDir :: IO FilePath
|
||||
|
||||
-- |The location of the directory specified by Cabal's @--dynlibdir@ option
|
||||
-- (where dynamic libraries are installed). This can be overridden at runtime
|
||||
-- using the environment variable example_dynlibdir.
|
||||
getDynLibDir :: IO FilePath
|
||||
|
||||
-- |The location of the directory specified by Cabal's @--datadir@ option (where
|
||||
-- architecture-independent data files are installed). This can be overridden at
|
||||
-- runtime using the environment variable example_datadir.
|
||||
getDataDir :: IO FilePath
|
||||
|
||||
-- |The location of the directory specified by Cabal's @--libexedir@ option
|
||||
-- (where executables that are not expected to be invoked directly by the user
|
||||
-- are installed). This can be overridden at runtime using the environment
|
||||
-- variable example_libexedir.
|
||||
getLibexecDir :: IO FilePath
|
||||
|
||||
-- |The location of the directory specified by Cabal's @--sysconfdir@ option
|
||||
-- (where configuration files are installed). This can be overridden at runtime
|
||||
-- using the environment variable example_sysconfdir.
|
||||
getSysconfDir :: IO FilePath
|
||||
|
||||
|
||||
|
||||
|
||||
bindir, libdir, dynlibdir, datadir, libexecdir, sysconfdir :: FilePath
|
||||
bindir = "/home/jingus/.cabal/bin"
|
||||
libdir = "/home/jingus/.cabal/lib/x86_64-linux-ghc-9.10.3-c0c3/example-0.1.0.0-inplace-example"
|
||||
dynlibdir = "/home/jingus/.cabal/lib/x86_64-linux-ghc-9.10.3-c0c3"
|
||||
datadir = "/home/jingus/.cabal/share/x86_64-linux-ghc-9.10.3-c0c3/example-0.1.0.0"
|
||||
libexecdir = "/home/jingus/.cabal/libexec/x86_64-linux-ghc-9.10.3-c0c3/example-0.1.0.0"
|
||||
sysconfdir = "/home/jingus/.cabal/etc"
|
||||
|
||||
getBinDir = catchIO (getEnv "example_bindir") (\_ -> return bindir)
|
||||
getLibDir = catchIO (getEnv "example_libdir") (\_ -> return libdir)
|
||||
getDynLibDir = catchIO (getEnv "example_dynlibdir") (\_ -> return dynlibdir)
|
||||
getDataDir = catchIO (getEnv "example_datadir") (\_ -> return datadir)
|
||||
getLibexecDir = catchIO (getEnv "example_libexecdir") (\_ -> return libexecdir)
|
||||
getSysconfDir = catchIO (getEnv "example_sysconfdir") (\_ -> return sysconfdir)
|
||||
|
||||
|
||||
|
||||
joinFileName :: String -> String -> FilePath
|
||||
joinFileName "" fname = fname
|
||||
joinFileName "." fname = fname
|
||||
joinFileName dir "" = dir
|
||||
joinFileName dir@(c:cs) fname
|
||||
| isPathSeparator (lastChar c cs) = dir ++ fname
|
||||
| otherwise = dir ++ pathSeparator : fname
|
||||
where
|
||||
-- We do not use Data.List.NonEmpty.last, as that would limit the module to
|
||||
-- base >= 4.9.0.0 (GHC >= 8.0.1).
|
||||
lastChar x [] = x
|
||||
lastChar _ (x:xs) = lastChar x xs
|
||||
|
||||
pathSeparator :: Char
|
||||
pathSeparator = '/'
|
||||
|
||||
isPathSeparator :: Char -> Bool
|
||||
isPathSeparator c = c == '/'
|
||||
|
|
@ -0,0 +1,140 @@
|
|||
/* DO NOT EDIT: This file is automatically generated by Cabal */
|
||||
|
||||
/* package example-0.1.0.0 */
|
||||
#ifndef VERSION_example
|
||||
#define VERSION_example "0.1.0.0"
|
||||
#endif /* VERSION_example */
|
||||
#ifndef MIN_VERSION_example
|
||||
#define MIN_VERSION_example(major1,major2,minor) (\
|
||||
(major1) < 0 || \
|
||||
(major1) == 0 && (major2) < 1 || \
|
||||
(major1) == 0 && (major2) == 1 && (minor) <= 0)
|
||||
#endif /* MIN_VERSION_example */
|
||||
/* package base-4.20.2.0 */
|
||||
#ifndef VERSION_base
|
||||
#define VERSION_base "4.20.2.0"
|
||||
#endif /* VERSION_base */
|
||||
#ifndef MIN_VERSION_base
|
||||
#define MIN_VERSION_base(major1,major2,minor) (\
|
||||
(major1) < 4 || \
|
||||
(major1) == 4 && (major2) < 20 || \
|
||||
(major1) == 4 && (major2) == 20 && (minor) <= 2)
|
||||
#endif /* MIN_VERSION_base */
|
||||
|
||||
/* tool cpphs-1.20.9 */
|
||||
#ifndef TOOL_VERSION_cpphs
|
||||
#define TOOL_VERSION_cpphs "1.20.9"
|
||||
#endif /* TOOL_VERSION_cpphs */
|
||||
#ifndef MIN_TOOL_VERSION_cpphs
|
||||
#define MIN_TOOL_VERSION_cpphs(major1,major2,minor) (\
|
||||
(major1) < 1 || \
|
||||
(major1) == 1 && (major2) < 20 || \
|
||||
(major1) == 1 && (major2) == 20 && (minor) <= 9)
|
||||
#endif /* MIN_TOOL_VERSION_cpphs */
|
||||
/* tool gcc-15.2.0 */
|
||||
#ifndef TOOL_VERSION_gcc
|
||||
#define TOOL_VERSION_gcc "15.2.0"
|
||||
#endif /* TOOL_VERSION_gcc */
|
||||
#ifndef MIN_TOOL_VERSION_gcc
|
||||
#define MIN_TOOL_VERSION_gcc(major1,major2,minor) (\
|
||||
(major1) < 15 || \
|
||||
(major1) == 15 && (major2) < 2 || \
|
||||
(major1) == 15 && (major2) == 2 && (minor) <= 0)
|
||||
#endif /* MIN_TOOL_VERSION_gcc */
|
||||
/* tool ghc-9.10.3 */
|
||||
#ifndef TOOL_VERSION_ghc
|
||||
#define TOOL_VERSION_ghc "9.10.3"
|
||||
#endif /* TOOL_VERSION_ghc */
|
||||
#ifndef MIN_TOOL_VERSION_ghc
|
||||
#define MIN_TOOL_VERSION_ghc(major1,major2,minor) (\
|
||||
(major1) < 9 || \
|
||||
(major1) == 9 && (major2) < 10 || \
|
||||
(major1) == 9 && (major2) == 10 && (minor) <= 3)
|
||||
#endif /* MIN_TOOL_VERSION_ghc */
|
||||
/* tool ghc-pkg-9.10.3 */
|
||||
#ifndef TOOL_VERSION_ghc_pkg
|
||||
#define TOOL_VERSION_ghc_pkg "9.10.3"
|
||||
#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) < 10 || \
|
||||
(major1) == 9 && (major2) == 10 && (minor) <= 3)
|
||||
#endif /* MIN_TOOL_VERSION_ghc_pkg */
|
||||
/* tool gpp-15.2.0 */
|
||||
#ifndef TOOL_VERSION_gpp
|
||||
#define TOOL_VERSION_gpp "15.2.0"
|
||||
#endif /* TOOL_VERSION_gpp */
|
||||
#ifndef MIN_TOOL_VERSION_gpp
|
||||
#define MIN_TOOL_VERSION_gpp(major1,major2,minor) (\
|
||||
(major1) < 15 || \
|
||||
(major1) == 15 && (major2) < 2 || \
|
||||
(major1) == 15 && (major2) == 2 && (minor) <= 0)
|
||||
#endif /* MIN_TOOL_VERSION_gpp */
|
||||
/* tool haddock-2.31.1 */
|
||||
#ifndef TOOL_VERSION_haddock
|
||||
#define TOOL_VERSION_haddock "2.31.1"
|
||||
#endif /* TOOL_VERSION_haddock */
|
||||
#ifndef MIN_TOOL_VERSION_haddock
|
||||
#define MIN_TOOL_VERSION_haddock(major1,major2,minor) (\
|
||||
(major1) < 2 || \
|
||||
(major1) == 2 && (major2) < 31 || \
|
||||
(major1) == 2 && (major2) == 31 && (minor) <= 1)
|
||||
#endif /* MIN_TOOL_VERSION_haddock */
|
||||
/* tool hpc-0.69 */
|
||||
#ifndef TOOL_VERSION_hpc
|
||||
#define TOOL_VERSION_hpc "0.69"
|
||||
#endif /* TOOL_VERSION_hpc */
|
||||
#ifndef MIN_TOOL_VERSION_hpc
|
||||
#define MIN_TOOL_VERSION_hpc(major1,major2,minor) (\
|
||||
(major1) < 0 || \
|
||||
(major1) == 0 && (major2) < 69 || \
|
||||
(major1) == 0 && (major2) == 69 && (minor) <= 0)
|
||||
#endif /* MIN_TOOL_VERSION_hpc */
|
||||
/* tool hsc2hs-0.68.10 */
|
||||
#ifndef TOOL_VERSION_hsc2hs
|
||||
#define TOOL_VERSION_hsc2hs "0.68.10"
|
||||
#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) <= 10)
|
||||
#endif /* MIN_TOOL_VERSION_hsc2hs */
|
||||
/* tool hscolour-1.25 */
|
||||
#ifndef TOOL_VERSION_hscolour
|
||||
#define TOOL_VERSION_hscolour "1.25"
|
||||
#endif /* TOOL_VERSION_hscolour */
|
||||
#ifndef MIN_TOOL_VERSION_hscolour
|
||||
#define MIN_TOOL_VERSION_hscolour(major1,major2,minor) (\
|
||||
(major1) < 1 || \
|
||||
(major1) == 1 && (major2) < 25 || \
|
||||
(major1) == 1 && (major2) == 25 && (minor) <= 0)
|
||||
#endif /* MIN_TOOL_VERSION_hscolour */
|
||||
/* tool runghc-9.10.3 */
|
||||
#ifndef TOOL_VERSION_runghc
|
||||
#define TOOL_VERSION_runghc "9.10.3"
|
||||
#endif /* TOOL_VERSION_runghc */
|
||||
#ifndef MIN_TOOL_VERSION_runghc
|
||||
#define MIN_TOOL_VERSION_runghc(major1,major2,minor) (\
|
||||
(major1) < 9 || \
|
||||
(major1) == 9 && (major2) < 10 || \
|
||||
(major1) == 9 && (major2) == 10 && (minor) <= 3)
|
||||
#endif /* MIN_TOOL_VERSION_runghc */
|
||||
/* tool strip-2.46 */
|
||||
#ifndef TOOL_VERSION_strip
|
||||
#define TOOL_VERSION_strip "2.46"
|
||||
#endif /* TOOL_VERSION_strip */
|
||||
#ifndef MIN_TOOL_VERSION_strip
|
||||
#define MIN_TOOL_VERSION_strip(major1,major2,minor) (\
|
||||
(major1) < 2 || \
|
||||
(major1) == 2 && (major2) < 46 || \
|
||||
(major1) == 2 && (major2) == 46 && (minor) <= 0)
|
||||
#endif /* MIN_TOOL_VERSION_strip */
|
||||
|
||||
#ifndef CURRENT_COMPONENT_ID
|
||||
#define CURRENT_COMPONENT_ID "example-0.1.0.0-inplace-example"
|
||||
#endif /* CURRENT_COMPONENT_ID */
|
||||
#ifndef CURRENT_PACKAGE_VERSION
|
||||
#define CURRENT_PACKAGE_VERSION "0.1.0.0"
|
||||
#endif /* CURRENT_PACKAGE_VERSION */
|
||||
BIN
dist-newstyle/build/x86_64-linux/ghc-9.10.3/example-0.1.0.0/x/example/cache/config
vendored
Normal file
BIN
dist-newstyle/build/x86_64-linux/ghc-9.10.3/example-0.1.0.0/x/example/cache/config
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue