├── Setup.hs ├── test └── Spec.hs ├── app └── Main.hs ├── src └── Lib.hs ├── .stack-work ├── dist │ └── 2672c1f3 │ │ ├── build │ │ ├── Lib.hi │ │ ├── Lib.o │ │ ├── intership1-exe │ │ │ ├── intership1-exe.exe │ │ │ └── intership1-exe-tmp │ │ │ │ ├── Main.hi │ │ │ │ ├── Main.o │ │ │ │ └── app │ │ │ │ └── Main.dump-hi │ │ ├── HSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p.o │ │ ├── libHSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p.a │ │ ├── autogen │ │ │ ├── Paths_intership1.hs │ │ │ └── cabal_macros.h │ │ └── src │ │ │ └── Lib.dump-hi │ │ ├── setup-config │ │ ├── stack-cabal-mod │ │ ├── stack-build-cache │ │ ├── stack-config-cache │ │ └── package.conf.inplace │ │ ├── package.cache │ │ └── intership1-0.1.0.0-inplace.conf └── install │ └── 29d018e7 │ ├── pkgdb │ ├── package.cache │ └── intership1-0.1.0.0-ae05bdb490a12f52f80f3e911312ae64.conf │ ├── bin │ └── intership1-exe.exe │ ├── flag-cache │ └── intership1-0.1.0.0-ae05bdb490a12f52f80f3e911312ae64 │ ├── lib │ └── x86_64-windows-ghc-7.10.3 │ │ └── intership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p │ │ ├── Lib.hi │ │ ├── HSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p.o │ │ └── libHSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p.a │ └── doc │ └── intership1-0.1.0.0 │ └── LICENSE ├── README.md ├── intership1.cabal ├── LICENSE ├── stack.yaml └── .travis.yml /Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | main = defaultMain 3 | -------------------------------------------------------------------------------- /test/Spec.hs: -------------------------------------------------------------------------------- 1 | main :: IO () 2 | main = putStrLn "Test suite not yet implemented" 3 | -------------------------------------------------------------------------------- /app/Main.hs: -------------------------------------------------------------------------------- 1 | module Main where 2 | 3 | import Lib 4 | 5 | main :: IO () 6 | main = someFunc 7 | -------------------------------------------------------------------------------- /src/Lib.hs: -------------------------------------------------------------------------------- 1 | module Lib 2 | ( someFunc 3 | ) where 4 | 5 | someFunc :: IO () 6 | someFunc = putStrLn "someFunc" 7 | -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/build/Lib.hi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/dist/2672c1f3/build/Lib.hi -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/build/Lib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/dist/2672c1f3/build/Lib.o -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/setup-config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/dist/2672c1f3/setup-config -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/stack-cabal-mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/dist/2672c1f3/stack-cabal-mod -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/stack-build-cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/dist/2672c1f3/stack-build-cache -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/stack-config-cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/dist/2672c1f3/stack-config-cache -------------------------------------------------------------------------------- /.stack-work/install/29d018e7/pkgdb/package.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/install/29d018e7/pkgdb/package.cache -------------------------------------------------------------------------------- /.stack-work/install/29d018e7/bin/intership1-exe.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/install/29d018e7/bin/intership1-exe.exe -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/package.conf.inplace/package.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/dist/2672c1f3/package.conf.inplace/package.cache -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/build/intership1-exe/intership1-exe.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/dist/2672c1f3/build/intership1-exe/intership1-exe.exe -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/build/intership1-exe/intership1-exe-tmp/Main.hi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/dist/2672c1f3/build/intership1-exe/intership1-exe-tmp/Main.hi -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/build/intership1-exe/intership1-exe-tmp/Main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/dist/2672c1f3/build/intership1-exe/intership1-exe-tmp/Main.o -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/build/HSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/dist/2672c1f3/build/HSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p.o -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/build/libHSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/dist/2672c1f3/build/libHSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p.a -------------------------------------------------------------------------------- /.stack-work/install/29d018e7/flag-cache/intership1-0.1.0.0-ae05bdb490a12f52f80f3e911312ae64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/install/29d018e7/flag-cache/intership1-0.1.0.0-ae05bdb490a12f52f80f3e911312ae64 -------------------------------------------------------------------------------- /.stack-work/install/29d018e7/lib/x86_64-windows-ghc-7.10.3/intership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p/Lib.hi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/install/29d018e7/lib/x86_64-windows-ghc-7.10.3/intership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p/Lib.hi -------------------------------------------------------------------------------- /.stack-work/install/29d018e7/lib/x86_64-windows-ghc-7.10.3/intership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p/HSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/install/29d018e7/lib/x86_64-windows-ghc-7.10.3/intership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p/HSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p.o -------------------------------------------------------------------------------- /.stack-work/install/29d018e7/lib/x86_64-windows-ghc-7.10.3/intership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p/libHSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/module/internship1/master/.stack-work/install/29d018e7/lib/x86_64-windows-ghc-7.10.3/intership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p/libHSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p.a -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # internship1 2 | 3 | Project #1: Whitespace checker for haskell projects. 4 | 5 | The goal of the project is create a tool which gives warnings on if the whitespacing rules are not hold. The first implementation is based on a simple approach; read files line by line, check if the line fulfills some rules. 6 | 7 | Task: 8 | 1. Setup Hello World stack/cabal project, and upload it to github 9 | 2. Set up travis to build the project 10 | 3. Create a Main module which reads a file line by line and prints it to the console 11 | 4. Read the file from the arguments: HINT in ghci :main arg1 arg2 12 | To Be Defined 13 | 14 | -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/package.conf.inplace/intership1-0.1.0.0-inplace.conf: -------------------------------------------------------------------------------- 1 | name: intership1 2 | version: 0.1.0.0 3 | id: intership1-0.1.0.0-inplace 4 | key: inter_Lfbg7gCS9rT0C3RBCp6M7p 5 | license: BSD3 6 | copyright: 2016 Author name here 7 | maintainer: example@example.com 8 | homepage: https://github.com/githubuser/intership1#readme 9 | synopsis: Initial project template from stack 10 | description: 11 | Please see README.md 12 | category: Web 13 | author: Author name here 14 | exposed: True 15 | exposed-modules: 16 | Lib 17 | trusted: False 18 | import-dirs: D:\intership\intership1\.stack-work\dist\2672c1f3\build 19 | library-dirs: D:\intership\intership1\.stack-work\dist\2672c1f3\build 20 | C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\lib 21 | data-dir: D:\intership\intership1 22 | hs-libraries: HSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p 23 | include-dirs: C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include 24 | depends: 25 | base-4.8.2.0-14035a44a8b95c6832da6dae1420f59e 26 | haddock-interfaces: D:\intership\intership1\.stack-work\dist\2672c1f3\doc\html\intership1\intership1.haddock 27 | haddock-html: D:\intership\intership1\.stack-work\dist\2672c1f3\doc\html\intership1 28 | -------------------------------------------------------------------------------- /intership1.cabal: -------------------------------------------------------------------------------- 1 | name: intership1 2 | version: 0.1.0.0 3 | synopsis: Initial project template from stack 4 | description: Please see README.md 5 | homepage: https://github.com/githubuser/intership1#readme 6 | license: BSD3 7 | license-file: LICENSE 8 | author: Author name here 9 | maintainer: example@example.com 10 | copyright: 2016 Author name here 11 | category: Web 12 | build-type: Simple 13 | -- extra-source-files: 14 | cabal-version: >=1.10 15 | 16 | library 17 | hs-source-dirs: src 18 | exposed-modules: Lib 19 | build-depends: base >= 4.7 && < 5 20 | default-language: Haskell2010 21 | 22 | executable intership1-exe 23 | hs-source-dirs: app 24 | main-is: Main.hs 25 | ghc-options: -threaded -rtsopts -with-rtsopts=-N 26 | build-depends: base 27 | , intership1 28 | default-language: Haskell2010 29 | 30 | test-suite intership1-test 31 | type: exitcode-stdio-1.0 32 | hs-source-dirs: test 33 | main-is: Spec.hs 34 | build-depends: base 35 | , intership1 36 | ghc-options: -threaded -rtsopts -with-rtsopts=-N 37 | default-language: Haskell2010 38 | 39 | source-repository head 40 | type: git 41 | location: https://github.com/githubuser/intership1 42 | -------------------------------------------------------------------------------- /.stack-work/install/29d018e7/pkgdb/intership1-0.1.0.0-ae05bdb490a12f52f80f3e911312ae64.conf: -------------------------------------------------------------------------------- 1 | name: intership1 2 | version: 0.1.0.0 3 | id: intership1-0.1.0.0-ae05bdb490a12f52f80f3e911312ae64 4 | key: inter_Lfbg7gCS9rT0C3RBCp6M7p 5 | license: BSD3 6 | copyright: 2016 Author name here 7 | maintainer: example@example.com 8 | homepage: https://github.com/githubuser/intership1#readme 9 | synopsis: Initial project template from stack 10 | description: 11 | Please see README.md 12 | category: Web 13 | author: Author name here 14 | exposed: True 15 | exposed-modules: 16 | Lib 17 | trusted: False 18 | import-dirs: D:\intership\intership1\.stack-work\install\29d018e7\lib\x86_64-windows-ghc-7.10.3\intership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p 19 | library-dirs: D:\intership\intership1\.stack-work\install\29d018e7\lib\x86_64-windows-ghc-7.10.3\intership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p 20 | C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\lib 21 | data-dir: D:\intership\intership1\.stack-work\install\29d018e7\share\x86_64-windows-ghc-7.10.3\intership1-0.1.0.0 22 | hs-libraries: HSintership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p 23 | include-dirs: C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include 24 | depends: 25 | base-4.8.2.0-14035a44a8b95c6832da6dae1420f59e 26 | haddock-interfaces: D:\intership\intership1\.stack-work\install\29d018e7\doc\intership1-0.1.0.0\intership1.haddock 27 | haddock-html: D:\intership\intership1\.stack-work\install\29d018e7\doc\intership1-0.1.0.0 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Author name here (c) 2016 2 | 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above 12 | copyright notice, this list of conditions and the following 13 | disclaimer in the documentation and/or other materials provided 14 | with the distribution. 15 | 16 | * Neither the name of Author name here nor the names of other 17 | contributors may be used to endorse or promote products derived 18 | from this software without specific prior written permission. 19 | 20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /.stack-work/install/29d018e7/doc/intership1-0.1.0.0/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Author name here (c) 2016 2 | 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above 12 | copyright notice, this list of conditions and the following 13 | disclaimer in the documentation and/or other materials provided 14 | with the distribution. 15 | 16 | * Neither the name of Author name here nor the names of other 17 | contributors may be used to endorse or promote products derived 18 | from this software without specific prior written permission. 19 | 20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/build/autogen/Paths_intership1.hs: -------------------------------------------------------------------------------- 1 | module Paths_intership1 ( 2 | version, 3 | getBinDir, getLibDir, getDataDir, getLibexecDir, 4 | getDataFileName, getSysconfDir 5 | ) where 6 | 7 | import qualified Control.Exception as Exception 8 | import Data.Version (Version(..)) 9 | import System.Environment (getEnv) 10 | import Prelude 11 | 12 | catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a 13 | catchIO = Exception.catch 14 | 15 | version :: Version 16 | version = Version [0,1,0,0] [] 17 | bindir, libdir, datadir, libexecdir, sysconfdir :: FilePath 18 | 19 | bindir = "D:\\intership\\intership1\\.stack-work\\install\\29d018e7\\bin" 20 | libdir = "D:\\intership\\intership1\\.stack-work\\install\\29d018e7\\lib\\x86_64-windows-ghc-7.10.3\\intership1-0.1.0.0-Lfbg7gCS9rT0C3RBCp6M7p" 21 | datadir = "D:\\intership\\intership1\\.stack-work\\install\\29d018e7\\share\\x86_64-windows-ghc-7.10.3\\intership1-0.1.0.0" 22 | libexecdir = "D:\\intership\\intership1\\.stack-work\\install\\29d018e7\\libexec" 23 | sysconfdir = "D:\\intership\\intership1\\.stack-work\\install\\29d018e7\\etc" 24 | 25 | getBinDir, getLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath 26 | getBinDir = catchIO (getEnv "intership1_bindir") (\_ -> return bindir) 27 | getLibDir = catchIO (getEnv "intership1_libdir") (\_ -> return libdir) 28 | getDataDir = catchIO (getEnv "intership1_datadir") (\_ -> return datadir) 29 | getLibexecDir = catchIO (getEnv "intership1_libexecdir") (\_ -> return libexecdir) 30 | getSysconfDir = catchIO (getEnv "intership1_sysconfdir") (\_ -> return sysconfdir) 31 | 32 | getDataFileName :: FilePath -> IO FilePath 33 | getDataFileName name = do 34 | dir <- getDataDir 35 | return (dir ++ "\\" ++ name) 36 | -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/build/intership1-exe/intership1-exe-tmp/app/Main.dump-hi: -------------------------------------------------------------------------------- 1 | 2 | ==================== FINAL INTERFACE ==================== 3 | 2016-09-09 20:51:32.125017 UTC 4 | 5 | interface main@main:Main 7103 6 | interface hash: 4273017abe6e435355026ac2ae286773 7 | ABI hash: caa2f584e65595f5d9ff46a6463a5dea 8 | export-list hash: 455371d7de709b47ea13e5c41606984e 9 | orphan hash: 693e9af84d3dfcc71e640e005bdc5e2e 10 | flag hash: 679d14e3e3de19ac8348585a229143f5 11 | sig of: Nothing 12 | used TH splices: False 13 | where 14 | exports: 15 | Main.main 16 | module dependencies: 17 | package dependencies: base-4.8.2.0* ghc-prim-0.4.0.0 18 | integer-gmp-1.0.0.0 intership1-0.1.0.0@inter_Lfbg7gCS9rT0C3RBCp6M7p 19 | orphans: base-4.8.2.0:GHC.Base base-4.8.2.0:GHC.Float 20 | family instance modules: base-4.8.2.0:Control.Applicative 21 | base-4.8.2.0:Data.Either base-4.8.2.0:Data.Monoid 22 | base-4.8.2.0:Data.Type.Equality base-4.8.2.0:GHC.Generics 23 | import -/ base-4.8.2.0:Prelude 694dcaf039efe62df1c44834e2dbd2fb 24 | import -/ ghc-prim-0.4.0.0:GHC.Types 6b27fb3fdbd0e3f0925a4496c66513bb 25 | import -/ intership1-0.1.0.0@inter_Lfbg7gCS9rT0C3RBCp6M7p:Lib e437540aca4111412c0037c95fb90319 26 | 675e7b9c388a2fe813f3e5653fb2c75a 27 | main :: GHC.Types.IO () 28 | {- Arity: 1, Strictness: , 29 | Unfolding: InlineRule (0, True, True) 30 | Lib.someFunc1 `cast` (Sym (GHC.Types.NTCo:IO[0] <()>_R)) -} 31 | b7ecd042aa4ef86dab134cd8917d036d 32 | main1 :: 33 | GHC.Prim.State# GHC.Prim.RealWorld 34 | -> (# GHC.Prim.State# GHC.Prim.RealWorld, () #) 35 | {- Arity: 1, 36 | Unfolding: (GHC.TopHandler.runMainIO1 37 | @ () 38 | Lib.someFunc1 `cast` (Sym (GHC.Types.NTCo:IO[0] <()>_R))) -} 39 | vectorised variables: 40 | vectorised tycons: 41 | vectorised reused tycons: 42 | parallel variables: 43 | parallel tycons: 44 | trusted: safe 45 | require own pkg trusted: False 46 | 47 | -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/build/src/Lib.dump-hi: -------------------------------------------------------------------------------- 1 | 2 | ==================== FINAL INTERFACE ==================== 3 | 2016-09-09 20:51:31.3399721 UTC 4 | 5 | interface inter_Lfbg7gCS9rT0C3RBCp6M7p:Lib 7103 6 | interface hash: 46bb16b0eb3194b5ab9ee00e50962e49 7 | ABI hash: e437540aca4111412c0037c95fb90319 8 | export-list hash: 50498aa9dc6114929180400837f07afc 9 | orphan hash: 693e9af84d3dfcc71e640e005bdc5e2e 10 | flag hash: 574089a64a639ae97ecd55c3141f0610 11 | sig of: Nothing 12 | used TH splices: False 13 | where 14 | exports: 15 | Lib.someFunc 16 | module dependencies: 17 | package dependencies: base-4.8.2.0* ghc-prim-0.4.0.0 18 | integer-gmp-1.0.0.0 19 | orphans: base-4.8.2.0:GHC.Base base-4.8.2.0:GHC.Float 20 | family instance modules: base-4.8.2.0:Control.Applicative 21 | base-4.8.2.0:Data.Either base-4.8.2.0:Data.Monoid 22 | base-4.8.2.0:Data.Type.Equality base-4.8.2.0:GHC.Generics 23 | import -/ base-4.8.2.0:Prelude 694dcaf039efe62df1c44834e2dbd2fb 24 | import -/ base-4.8.2.0:System.IO 638c10c4fd4901a0aca5b77c9f14123d 25 | import -/ ghc-prim-0.4.0.0:GHC.Types 6b27fb3fdbd0e3f0925a4496c66513bb 26 | be6fd75b347e349716859e54ab46e37e 27 | someFunc :: GHC.Types.IO () 28 | {- Arity: 1, Strictness: , 29 | Unfolding: InlineRule (0, True, True) 30 | Lib.someFunc1 `cast` (Sym (GHC.Types.NTCo:IO[0] <()>_R)) -} 31 | 320b096d9e602675347e1af8cb47e1d2 32 | someFunc1 :: 33 | GHC.Prim.State# GHC.Prim.RealWorld 34 | -> (# GHC.Prim.State# GHC.Prim.RealWorld, () #) 35 | {- Arity: 1, Strictness: , 36 | Unfolding: (\ eta :: GHC.Prim.State# GHC.Prim.RealWorld[OneShot] -> 37 | GHC.IO.Handle.Text.hPutStr2 38 | GHC.IO.Handle.FD.stdout 39 | Lib.someFunc2 40 | GHC.Types.True 41 | eta) -} 42 | ccd6be004c077656311f2bde8926979d 43 | someFunc2 :: [GHC.Types.Char] 44 | {- Unfolding: (GHC.CString.unpackCString# "someFunc"#) -} 45 | vectorised variables: 46 | vectorised tycons: 47 | vectorised reused tycons: 48 | parallel variables: 49 | parallel tycons: 50 | trusted: safe 51 | require own pkg trusted: False 52 | 53 | -------------------------------------------------------------------------------- /stack.yaml: -------------------------------------------------------------------------------- 1 | # This file was automatically generated by 'stack init' 2 | # 3 | # Some commonly used options have been documented as comments in this file. 4 | # For advanced use and comprehensive documentation of the format, please see: 5 | # http://docs.haskellstack.org/en/stable/yaml_configuration/ 6 | 7 | # Resolver to choose a 'specific' stackage snapshot or a compiler version. 8 | # A snapshot resolver dictates the compiler version and the set of packages 9 | # to be used for project dependencies. For example: 10 | # 11 | # resolver: lts-3.5 12 | # resolver: nightly-2015-09-21 13 | # resolver: ghc-7.10.2 14 | # resolver: ghcjs-0.1.0_ghc-7.10.2 15 | # resolver: 16 | # name: custom-snapshot 17 | # location: "./custom-snapshot.yaml" 18 | resolver: lts-6.16 19 | 20 | # User packages to be built. 21 | # Various formats can be used as shown in the example below. 22 | # 23 | # packages: 24 | # - some-directory 25 | # - https://example.com/foo/bar/baz-0.0.2.tar.gz 26 | # - location: 27 | # git: https://github.com/commercialhaskell/stack.git 28 | # commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a 29 | # - location: https://github.com/commercialhaskell/stack/commit/e7b331f14bcffb8367cd58fbfc8b40ec7642100a 30 | # extra-dep: true 31 | # subdirs: 32 | # - auto-update 33 | # - wai 34 | # 35 | # A package marked 'extra-dep: true' will only be built if demanded by a 36 | # non-dependency (i.e. a user package), and its test suites and benchmarks 37 | # will not be run. This is useful for tweaking upstream packages. 38 | packages: 39 | - '.' 40 | # Dependency packages to be pulled from upstream that are not in the resolver 41 | # (e.g., acme-missiles-0.3) 42 | extra-deps: [] 43 | 44 | # Override default flag values for local packages and extra-deps 45 | flags: {} 46 | 47 | # Extra package databases containing global packages 48 | extra-package-dbs: [] 49 | 50 | # Control whether we use the GHC we find on the path 51 | # system-ghc: true 52 | # 53 | # Require a specific version of stack, using version ranges 54 | # require-stack-version: -any # Default 55 | # require-stack-version: ">=1.1" 56 | # 57 | # Override the architecture used by stack, especially useful on Windows 58 | # arch: i386 59 | # arch: x86_64 60 | # 61 | # Extra directories used by stack for building 62 | # extra-include-dirs: [/path/to/dir] 63 | # extra-lib-dirs: [/path/to/dir] 64 | # 65 | # Allow a newer minor version of GHC than the snapshot specifies 66 | # compiler-check: newer-minor -------------------------------------------------------------------------------- /.stack-work/dist/2672c1f3/build/autogen/cabal_macros.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT: This file is automatically generated by Cabal */ 2 | 3 | /* package base-4.8.2.0 */ 4 | #define VERSION_base "4.8.2.0" 5 | #define MIN_VERSION_base(major1,major2,minor) (\ 6 | (major1) < 4 || \ 7 | (major1) == 4 && (major2) < 8 || \ 8 | (major1) == 4 && (major2) == 8 && (minor) <= 2) 9 | 10 | /* tool alex-3.1.4 */ 11 | #define TOOL_VERSION_alex "3.1.4" 12 | #define MIN_TOOL_VERSION_alex(major1,major2,minor) (\ 13 | (major1) < 3 || \ 14 | (major1) == 3 && (major2) < 1 || \ 15 | (major1) == 3 && (major2) == 1 && (minor) <= 4) 16 | 17 | /* tool gcc-5.2.0 */ 18 | #define TOOL_VERSION_gcc "5.2.0" 19 | #define MIN_TOOL_VERSION_gcc(major1,major2,minor) (\ 20 | (major1) < 5 || \ 21 | (major1) == 5 && (major2) < 2 || \ 22 | (major1) == 5 && (major2) == 2 && (minor) <= 0) 23 | 24 | /* tool ghc-7.10.3 */ 25 | #define TOOL_VERSION_ghc "7.10.3" 26 | #define MIN_TOOL_VERSION_ghc(major1,major2,minor) (\ 27 | (major1) < 7 || \ 28 | (major1) == 7 && (major2) < 10 || \ 29 | (major1) == 7 && (major2) == 10 && (minor) <= 3) 30 | 31 | /* tool ghc-pkg-7.10.3 */ 32 | #define TOOL_VERSION_ghc_pkg "7.10.3" 33 | #define MIN_TOOL_VERSION_ghc_pkg(major1,major2,minor) (\ 34 | (major1) < 7 || \ 35 | (major1) == 7 && (major2) < 10 || \ 36 | (major1) == 7 && (major2) == 10 && (minor) <= 3) 37 | 38 | /* tool haddock-2.16.1 */ 39 | #define TOOL_VERSION_haddock "2.16.1" 40 | #define MIN_TOOL_VERSION_haddock(major1,major2,minor) (\ 41 | (major1) < 2 || \ 42 | (major1) == 2 && (major2) < 16 || \ 43 | (major1) == 2 && (major2) == 16 && (minor) <= 1) 44 | 45 | /* tool happy-1.19.5 */ 46 | #define TOOL_VERSION_happy "1.19.5" 47 | #define MIN_TOOL_VERSION_happy(major1,major2,minor) (\ 48 | (major1) < 1 || \ 49 | (major1) == 1 && (major2) < 19 || \ 50 | (major1) == 1 && (major2) == 19 && (minor) <= 5) 51 | 52 | /* tool hpc-0.67 */ 53 | #define TOOL_VERSION_hpc "0.67" 54 | #define MIN_TOOL_VERSION_hpc(major1,major2,minor) (\ 55 | (major1) < 0 || \ 56 | (major1) == 0 && (major2) < 67 || \ 57 | (major1) == 0 && (major2) == 67 && (minor) <= 0) 58 | 59 | /* tool hsc2hs-0.67 */ 60 | #define TOOL_VERSION_hsc2hs "0.67" 61 | #define MIN_TOOL_VERSION_hsc2hs(major1,major2,minor) (\ 62 | (major1) < 0 || \ 63 | (major1) == 0 && (major2) < 67 || \ 64 | (major1) == 0 && (major2) == 67 && (minor) <= 0) 65 | 66 | /* tool pkg-config-0.28 */ 67 | #define TOOL_VERSION_pkg_config "0.28" 68 | #define MIN_TOOL_VERSION_pkg_config(major1,major2,minor) (\ 69 | (major1) < 0 || \ 70 | (major1) == 0 && (major2) < 28 || \ 71 | (major1) == 0 && (major2) == 28 && (minor) <= 0) 72 | 73 | /* tool strip-2.25 */ 74 | #define TOOL_VERSION_strip "2.25" 75 | #define MIN_TOOL_VERSION_strip(major1,major2,minor) (\ 76 | (major1) < 2 || \ 77 | (major1) == 2 && (major2) < 25 || \ 78 | (major1) == 2 && (major2) == 25 && (minor) <= 0) 79 | 80 | #define CURRENT_PACKAGE_KEY "inter_Lfbg7gCS9rT0C3RBCp6M7p" 81 | 82 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # Copy these contents into the root directory of your Github project in a file 2 | # named .travis.yml 3 | 4 | # Use new container infrastructure to enable caching 5 | sudo: false 6 | 7 | # Choose a lightweight base image; we provide our own build tools. 8 | language: c 9 | 10 | # Caching so the next build will be fast too. 11 | cache: 12 | directories: 13 | - $HOME/.ghc 14 | - $HOME/.cabal 15 | - $HOME/.stack 16 | 17 | # The different configurations we want to test. We have BUILD=cabal which uses 18 | # cabal-install, and BUILD=stack which uses Stack. More documentation on each 19 | # of those below. 20 | # 21 | # We set the compiler values here to tell Travis to use a different 22 | # cache file per set of arguments. 23 | # 24 | # If you need to have different apt packages for each combination in the 25 | # matrix, you can use a line such as: 26 | # addons: {apt: {packages: [libfcgi-dev,libgmp-dev]}} 27 | matrix: 28 | include: 29 | # We grab the appropriate GHC and cabal-install versions from hvr's PPA. See: 30 | # https://github.com/hvr/multi-ghc-travis 31 | #- env: BUILD=cabal GHCVER=7.0.4 CABALVER=1.16 HAPPYVER=1.19.5 ALEXVER=3.1.7 32 | # compiler: ": #GHC 7.0.4" 33 | # addons: {apt: {packages: [cabal-install-1.16,ghc-7.0.4,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}} 34 | #- env: BUILD=cabal GHCVER=7.2.2 CABALVER=1.16 HAPPYVER=1.19.5 ALEXVER=3.1.7 35 | # compiler: ": #GHC 7.2.2" 36 | # addons: {apt: {packages: [cabal-install-1.16,ghc-7.2.2,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}} 37 | #- env: BUILD=cabal GHCVER=7.4.2 CABALVER=1.16 HAPPYVER=1.19.5 ALEXVER=3.1.7 38 | # compiler: ": #GHC 7.4.2" 39 | # addons: {apt: {packages: [cabal-install-1.16,ghc-7.4.2,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}} 40 | - env: BUILD=cabal GHCVER=7.6.3 CABALVER=1.16 HAPPYVER=1.19.5 ALEXVER=3.1.7 41 | compiler: ": #GHC 7.6.3" 42 | addons: {apt: {packages: [cabal-install-1.16,ghc-7.6.3,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}} 43 | - env: BUILD=cabal GHCVER=7.8.4 CABALVER=1.18 HAPPYVER=1.19.5 ALEXVER=3.1.7 44 | compiler: ": #GHC 7.8.4" 45 | addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}} 46 | - env: BUILD=cabal GHCVER=7.10.3 CABALVER=1.22 HAPPYVER=1.19.5 ALEXVER=3.1.7 47 | compiler: ": #GHC 7.10.3" 48 | addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}} 49 | - env: BUILD=cabal GHCVER=8.0.1 CABALVER=1.24 HAPPYVER=1.19.5 ALEXVER=3.1.7 50 | compiler: ": #GHC 8.0.1" 51 | addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}} 52 | 53 | # Build with the newest GHC and cabal-install. This is an accepted failure, 54 | # see below. 55 | - env: BUILD=cabal GHCVER=head CABALVER=head HAPPYVER=1.19.5 ALEXVER=3.1.7 56 | compiler: ": #GHC HEAD" 57 | addons: {apt: {packages: [cabal-install-head,ghc-head,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}} 58 | 59 | # The Stack builds. We can pass in arbitrary Stack arguments via the ARGS 60 | # variable, such as using --stack-yaml to point to a different file. 61 | - env: BUILD=stack ARGS="" 62 | compiler: ": #stack default" 63 | addons: {apt: {packages: [ghc-7.10.3], sources: [hvr-ghc]}} 64 | 65 | - env: BUILD=stack ARGS="--resolver lts-2" 66 | compiler: ": #stack 7.8.4" 67 | addons: {apt: {packages: [ghc-7.8.4], sources: [hvr-ghc]}} 68 | 69 | - env: BUILD=stack ARGS="--resolver lts-3" 70 | compiler: ": #stack 7.10.2" 71 | addons: {apt: {packages: [ghc-7.10.2], sources: [hvr-ghc]}} 72 | 73 | - env: BUILD=stack ARGS="--resolver lts-5" 74 | compiler: ": #stack 7.10.3" 75 | addons: {apt: {packages: [ghc-7.10.3], sources: [hvr-ghc]}} 76 | 77 | # Nightly builds are allowed to fail 78 | - env: BUILD=stack ARGS="--resolver nightly" 79 | compiler: ": #stack nightly" 80 | addons: {apt: {packages: [libgmp,libgmp-dev]}} 81 | 82 | # Build on OS X in addition to Linux 83 | - env: BUILD=stack ARGS="" 84 | compiler: ": #stack default osx" 85 | os: osx 86 | 87 | - env: BUILD=stack ARGS="--resolver lts-2" 88 | compiler: ": #stack 7.8.4 osx" 89 | os: osx 90 | 91 | - env: BUILD=stack ARGS="--resolver lts-3" 92 | compiler: ": #stack 7.10.2 osx" 93 | os: osx 94 | 95 | - env: BUILD=stack ARGS="--resolver lts-5" 96 | compiler: ": #stack 7.10.3 osx" 97 | os: osx 98 | 99 | - env: BUILD=stack ARGS="--resolver nightly" 100 | compiler: ": #stack nightly osx" 101 | os: osx 102 | 103 | allow_failures: 104 | - env: BUILD=cabal GHCVER=head CABALVER=head HAPPYVER=1.19.5 ALEXVER=3.1.7 105 | - env: BUILD=stack ARGS="--resolver nightly" 106 | 107 | before_install: 108 | # Using compiler above sets CC to an invalid value, so unset it 109 | - unset CC 110 | 111 | # We want to always allow newer versions of packages when building on GHC HEAD 112 | - CABALARGS="" 113 | - if [ "x$GHCVER" = "xhead" ]; then CABALARGS=--allow-newer; fi 114 | 115 | # Download and unpack the stack executable 116 | - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$HOME/.local/bin:/opt/alex/$ALEXVER/bin:/opt/happy/$HAPPYVER/bin:$HOME/.cabal/bin:$PATH 117 | - mkdir -p ~/.local/bin 118 | - | 119 | if [ `uname` = "Darwin" ] 120 | then 121 | travis_retry curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin 122 | else 123 | travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' 124 | fi 125 | 126 | # Use the more reliable S3 mirror of Hackage 127 | mkdir -p $HOME/.cabal 128 | echo 'remote-repo: hackage.haskell.org:http://hackage.fpcomplete.com/' > $HOME/.cabal/config 129 | echo 'remote-repo-cache: $HOME/.cabal/packages' >> $HOME/.cabal/config 130 | 131 | if [ "$CABALVER" != "1.16" ] 132 | then 133 | echo 'jobs: $ncpus' >> $HOME/.cabal/config 134 | fi 135 | 136 | # Get the list of packages from the stack.yaml file 137 | - PACKAGES=$(stack --install-ghc query locals | grep '^ *path' | sed 's@^ *path:@@') 138 | 139 | install: 140 | - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]" 141 | - if [ -f configure.ac ]; then autoreconf -i; fi 142 | - | 143 | set -ex 144 | case "$BUILD" in 145 | stack) 146 | stack --no-terminal --install-ghc $ARGS test --bench --only-dependencies 147 | ;; 148 | cabal) 149 | cabal --version 150 | travis_retry cabal update 151 | cabal install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls --ghc-options=-O0 --reorder-goals --max-backjumps=-1 $CABALARGS $PACKAGES 152 | ;; 153 | esac 154 | set +ex 155 | 156 | script: 157 | - | 158 | set -ex 159 | case "$BUILD" in 160 | stack) 161 | stack --no-terminal $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps 162 | ;; 163 | cabal) 164 | cabal install --enable-tests --enable-benchmarks --force-reinstalls --ghc-options=-O0 --reorder-goals --max-backjumps=-1 $CABALARGS $PACKAGES 165 | 166 | ORIGDIR=$(pwd) 167 | for dir in $PACKAGES 168 | do 169 | cd $dir 170 | cabal check || [ "$CABALVER" == "1.16" ] 171 | cabal sdist 172 | SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz && \ 173 | (cd dist && cabal install --force-reinstalls "$SRC_TGZ") 174 | cd $ORIGDIR 175 | done 176 | ;; 177 | esac 178 | set +ex --------------------------------------------------------------------------------