diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Lib.dyn_hi b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Lib.dyn_hi new file mode 100644 index 0000000..907d71c Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Lib.dyn_hi differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Lib.dyn_o b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Lib.dyn_o new file mode 100644 index 0000000..28ac1b6 Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Lib.dyn_o differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Lib.hi b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Lib.hi new file mode 100644 index 0000000..dcdeb0f Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Lib.hi differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Lib.o b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Lib.o new file mode 100644 index 0000000..a74db3a Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Lib.o differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/WordChain.dyn_hi b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/WordChain.dyn_hi new file mode 100644 index 0000000..619b7eb Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/WordChain.dyn_hi differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/WordChain.dyn_o b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/WordChain.dyn_o new file mode 100644 index 0000000..5fc596c Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/WordChain.dyn_o differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/WordChain.hi b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/WordChain.hi new file mode 100644 index 0000000..c33bf3a Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/WordChain.hi differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/WordChain.o b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/WordChain.o new file mode 100644 index 0000000..02b47aa Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/WordChain.o differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/autogen/Paths_word_chain.hs b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/autogen/Paths_word_chain.hs new file mode 100644 index 0000000..4c66554 --- /dev/null +++ b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/autogen/Paths_word_chain.hs @@ -0,0 +1,48 @@ +{-# LANGUAGE CPP #-} +{-# OPTIONS_GHC -fno-warn-missing-import-lists #-} +{-# OPTIONS_GHC -fno-warn-implicit-prelude #-} +module Paths_word_chain ( + version, + getBinDir, getLibDir, 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 + +version :: Version +version = Version [0,1,0,0] [] +bindir, libdir, datadir, libexecdir, sysconfdir :: FilePath + +bindir = "/Users/jchae/projects/katas/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/bin" +libdir = "/Users/jchae/projects/katas/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi" +datadir = "/Users/jchae/projects/katas/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/share/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0" +libexecdir = "/Users/jchae/projects/katas/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/libexec" +sysconfdir = "/Users/jchae/projects/katas/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/etc" + +getBinDir, getLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath +getBinDir = catchIO (getEnv "word_chain_bindir") (\_ -> return bindir) +getLibDir = catchIO (getEnv "word_chain_libdir") (\_ -> return libdir) +getDataDir = catchIO (getEnv "word_chain_datadir") (\_ -> return datadir) +getLibexecDir = catchIO (getEnv "word_chain_libexecdir") (\_ -> return libexecdir) +getSysconfDir = catchIO (getEnv "word_chain_sysconfdir") (\_ -> return sysconfdir) + +getDataFileName :: FilePath -> IO FilePath +getDataFileName name = do + dir <- getDataDir + return (dir ++ "/" ++ name) diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/autogen/cabal_macros.h b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/autogen/cabal_macros.h new file mode 100644 index 0000000..8bf42f9 --- /dev/null +++ b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/autogen/cabal_macros.h @@ -0,0 +1,76 @@ +/* DO NOT EDIT: This file is automatically generated by Cabal */ + +/* package word-chain-0.1.0.0 */ +#define VERSION_word_chain "0.1.0.0" +#define MIN_VERSION_word_chain(major1,major2,minor) (\ + (major1) < 0 || \ + (major1) == 0 && (major2) < 1 || \ + (major1) == 0 && (major2) == 1 && (minor) <= 0) + +/* package base-4.9.0.0 */ +#define VERSION_base "4.9.0.0" +#define MIN_VERSION_base(major1,major2,minor) (\ + (major1) < 4 || \ + (major1) == 4 && (major2) < 9 || \ + (major1) == 4 && (major2) == 9 && (minor) <= 0) + +/* package hspec-2.2.3 */ +#define VERSION_hspec "2.2.3" +#define MIN_VERSION_hspec(major1,major2,minor) (\ + (major1) < 2 || \ + (major1) == 2 && (major2) < 2 || \ + (major1) == 2 && (major2) == 2 && (minor) <= 3) + +/* tool gcc-4.2.1 */ +#define TOOL_VERSION_gcc "4.2.1" +#define MIN_TOOL_VERSION_gcc(major1,major2,minor) (\ + (major1) < 4 || \ + (major1) == 4 && (major2) < 2 || \ + (major1) == 4 && (major2) == 2 && (minor) <= 1) + +/* tool ghc-8.0.1 */ +#define TOOL_VERSION_ghc "8.0.1" +#define MIN_TOOL_VERSION_ghc(major1,major2,minor) (\ + (major1) < 8 || \ + (major1) == 8 && (major2) < 0 || \ + (major1) == 8 && (major2) == 0 && (minor) <= 1) + +/* tool ghc-pkg-8.0.1 */ +#define TOOL_VERSION_ghc_pkg "8.0.1" +#define MIN_TOOL_VERSION_ghc_pkg(major1,major2,minor) (\ + (major1) < 8 || \ + (major1) == 8 && (major2) < 0 || \ + (major1) == 8 && (major2) == 0 && (minor) <= 1) + +/* tool haddock-2.17.2 */ +#define TOOL_VERSION_haddock "2.17.2" +#define MIN_TOOL_VERSION_haddock(major1,major2,minor) (\ + (major1) < 2 || \ + (major1) == 2 && (major2) < 17 || \ + (major1) == 2 && (major2) == 17 && (minor) <= 2) + +/* tool hpc-0.67 */ +#define TOOL_VERSION_hpc "0.67" +#define MIN_TOOL_VERSION_hpc(major1,major2,minor) (\ + (major1) < 0 || \ + (major1) == 0 && (major2) < 67 || \ + (major1) == 0 && (major2) == 67 && (minor) <= 0) + +/* tool hsc2hs-0.68 */ +#define TOOL_VERSION_hsc2hs "0.68" +#define MIN_TOOL_VERSION_hsc2hs(major1,major2,minor) (\ + (major1) < 0 || \ + (major1) == 0 && (major2) < 68 || \ + (major1) == 0 && (major2) == 68 && (minor) <= 0) + +/* tool pkg-config-0.29.1 */ +#define TOOL_VERSION_pkg_config "0.29.1" +#define MIN_TOOL_VERSION_pkg_config(major1,major2,minor) (\ + (major1) < 0 || \ + (major1) == 0 && (major2) < 29 || \ + (major1) == 0 && (major2) == 29 && (minor) <= 1) + +#define CURRENT_COMPONENT_ID "word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi" + +#define CURRENT_PACKAGE_KEY "word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi" + diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/libHSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi-ghc8.0.1.dylib b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/libHSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi-ghc8.0.1.dylib new file mode 100755 index 0000000..37c669c Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/libHSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi-ghc8.0.1.dylib differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/libHSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi.a b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/libHSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi.a new file mode 100644 index 0000000..4ccc342 Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/libHSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi.a differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/src/Lib.dump-hi b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/src/Lib.dump-hi new file mode 100644 index 0000000..7e3a76b --- /dev/null +++ b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/src/Lib.dump-hi @@ -0,0 +1,90 @@ + +==================== FINAL INTERFACE ==================== +2016-10-25 16:56:28.875096 UTC + +interface word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi:Lib 8001 + interface hash: 4cbf33342918bb6bb8b776132f658166 + ABI hash: cc6fb1bd5823e400a66195962c51875a + export-list hash: aa2d85800b328347ffce472243724abc + orphan hash: 693e9af84d3dfcc71e640e005bdc5e2e + flag hash: a4046e0fdab24403354cf30558c1ea1c + sig of: Nothing + used TH splices: False + where +exports: + Lib.allTheWords + Lib.readDictionary +module dependencies: +package dependencies: base-4.9.0.0* ghc-prim-0.5.0.0 + integer-gmp-1.0.0.1 +orphans: base-4.9.0.0:GHC.Base base-4.9.0.0:GHC.Float +family instance modules: base-4.9.0.0:Control.Applicative + base-4.9.0.0:Data.Either base-4.9.0.0:Data.Functor.Const + base-4.9.0.0:Data.Monoid base-4.9.0.0:Data.Type.Equality + base-4.9.0.0:GHC.Generics base-4.9.0.0:GHC.IO.Exception + base-4.9.0.0:GHC.TypeLits +import -/ base-4.9.0.0:Data.OldList 0058409f994fb13ae0616e3f1e5b4dae +import -/ base-4.9.0.0:GHC.Base 8ed3be81c0707b322f975a84ae1bb816 +import -/ base-4.9.0.0:Prelude b9bddb97799837fe67a8d00939a5b6c3 +import -/ base-4.9.0.0:System.Environment ee0914a962f5508d0fd404c89ee4999b +import -/ base-4.9.0.0:System.IO ad985d7a3fc986e9b9c610fb344d9106 +import -/ ghc-prim-0.5.0.0:GHC.Types 7378e41b7749213c8c88ceb6b0665d4c +6424f5de40d8416105c5008bb8a1d572 + $trModule :: GHC.Types.Module + {- HasNoCafRefs, Strictness: m, + Unfolding: (GHC.Types.Module Lib.$trModule2 Lib.$trModule1) -} +2923201ca2bf3755a83af198f1efaac6 + $trModule1 :: GHC.Types.TrName + {- HasNoCafRefs, Strictness: m1, + Unfolding: (GHC.Types.TrNameS "Lib"#) -} +dbf3ba0081cdd88ba770892816644eed + $trModule2 :: GHC.Types.TrName + {- HasNoCafRefs, Strictness: m1, + Unfolding: (GHC.Types.TrNameS + "word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi"#) -} +32ac82a52871e9707526af46a37a0ba9 + allTheWords :: GHC.Types.IO [GHC.Base.String] + {- Arity: 1, Strictness: , + Unfolding: InlineRule (0, True, True) + Lib.allTheWords1 + `cast` + (Sym (GHC.Types.N:IO[0] <[GHC.Base.String]>_R)) -} +562cdf4821f68ded2f4437a5f45cdac2 + allTheWords1 :: + GHC.Prim.State# GHC.Prim.RealWorld + -> (# GHC.Prim.State# GHC.Prim.RealWorld, [GHC.Base.String] #) + {- Arity: 1, Strictness: , + Unfolding: (\ (eta :: GHC.Prim.State# + GHC.Prim.RealWorld)[OneShot] -> + case GHC.IO.Handle.FD.openFile1 + Lib.dictionary + GHC.IO.IOMode.ReadMode + eta of ds1 { (#,#) ipv ipv1 -> + case GHC.IO.Handle.Text.hGetContents1 + ipv1 + ipv of ds { (#,#) ipv2 ipv3 -> + (# ipv2, Data.OldList.lines ipv3 #) } }) -} +f62287c5d84c85881749fdbc6f9e3fa0 + dictionary :: [GHC.Types.Char] + {- Unfolding: (GHC.CString.unpackCString# + "/usr/share/dict/words"#) -} +969df607be45e5cd5dd696f8c253f3ac + readDictionary :: GHC.Types.IO GHC.Base.String + {- Arity: 1, + Unfolding: InlineRule (0, True, True) + Lib.readDictionary1 + `cast` + (Sym (GHC.Types.N:IO[0] _R)) -} +2d0f4a129148f312abe6381107082a0f + readDictionary1 :: + GHC.Prim.State# GHC.Prim.RealWorld + -> (# GHC.Prim.State# GHC.Prim.RealWorld, GHC.Base.String #) + {- Arity: 1, Unfolding: (System.IO.readFile1 Lib.dictionary) -} +vectorised variables: +vectorised tycons: +vectorised reused tycons: +parallel variables: +parallel tycons: +trusted: safe +require own pkg trusted: False + diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/src/WordChain.dump-hi b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/src/WordChain.dump-hi new file mode 100644 index 0000000..2c2b975 --- /dev/null +++ b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/src/WordChain.dump-hi @@ -0,0 +1,305 @@ + +==================== FINAL INTERFACE ==================== +2016-11-15 18:52:00.815688 UTC + +interface word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi:WordChain 8001 + interface hash: 4caff6cd0bd94e34a80cb07832246f36 + ABI hash: 35ed563f5860c57e614f74eede3dc434 + export-list hash: dfaaa5a257930a218f72ade2e57e122c + orphan hash: 693e9af84d3dfcc71e640e005bdc5e2e + flag hash: a4046e0fdab24403354cf30558c1ea1c + sig of: Nothing + used TH splices: False + where +exports: + WordChain.allTheWords + WordChain.buildTree + WordChain.isNeighbor + WordChain.neighbors + WordChain.shortestPath +module dependencies: +package dependencies: base-4.9.0.0* ghc-prim-0.5.0.0 + integer-gmp-1.0.0.1 +orphans: base-4.9.0.0:GHC.Base base-4.9.0.0:GHC.Float +family instance modules: base-4.9.0.0:Control.Applicative + base-4.9.0.0:Data.Either base-4.9.0.0:Data.Functor.Const + base-4.9.0.0:Data.Monoid base-4.9.0.0:Data.Type.Equality + base-4.9.0.0:GHC.Generics base-4.9.0.0:GHC.IO.Exception + base-4.9.0.0:GHC.TypeLits +import -/ base-4.9.0.0:Data.Either bd9f099b82d4ed2d98c56d7144ac6957 +import -/ base-4.9.0.0:Data.Foldable 8aeb682f6c74f97fcf0ace0d608a43ea +import -/ base-4.9.0.0:Data.OldList 0058409f994fb13ae0616e3f1e5b4dae +import -/ base-4.9.0.0:GHC.Base 8ed3be81c0707b322f975a84ae1bb816 +import -/ base-4.9.0.0:GHC.List 13d2451194c1c6e53b4f4f07947736dd +import -/ base-4.9.0.0:GHC.Num 48f506a8f4ecf06285d0a0706594dcc0 +import -/ base-4.9.0.0:GHC.Show 952347a6ab730bcb25c0854d8bc6ca51 +import -/ base-4.9.0.0:Prelude b9bddb97799837fe67a8d00939a5b6c3 +import -/ base-4.9.0.0:System.Environment ee0914a962f5508d0fd404c89ee4999b +import -/ base-4.9.0.0:System.IO ad985d7a3fc986e9b9c610fb344d9106 +import -/ ghc-prim-0.5.0.0:GHC.Classes 0bdf3d057a415ec1b84a7b1994efbe47 +import -/ ghc-prim-0.5.0.0:GHC.Types 7378e41b7749213c8c88ceb6b0665d4c +4819b2471c4b9cd9bb224b5467b0f137 + $fShowWordTree :: + GHC.Show.Show word => GHC.Show.Show (WordChain.WordTree word) + DFunId + {- Arity: 1, Strictness: m, + Inline: [ALWAYS] CONLIKE, + Unfolding: DFun: @ word ($dShow :: GHC.Show.Show word). + @ (WordChain.WordTree word) + (WordChain.$fShowWordTree_$cshowsPrec @ word $dShow) + (WordChain.$fShowWordTree_$cshow @ word $dShow) + (WordChain.$fShowWordTree_$cshowList @ word $dShow) -} +71f1d129bc40b50d163ae618f4ef3cf5 + $fShowWordTree1 :: GHC.Types.Int + {- HasNoCafRefs, Strictness: m, Unfolding: (GHC.Types.I# 0#) -} +4819b2471c4b9cd9bb224b5467b0f137 + $fShowWordTree_$cshow :: + GHC.Show.Show word => WordChain.WordTree word -> GHC.Base.String + {- Arity: 2, Strictness: , + Unfolding: InlineRule (2, True, False) + (\ @ word + ($dShow :: GHC.Show.Show word) + (x :: WordChain.WordTree word) -> + WordChain.$fShowWordTree_$cshowsPrec + @ word + $dShow + GHC.Show.shows22 + x + (GHC.Types.[] @ GHC.Types.Char)) -} +4819b2471c4b9cd9bb224b5467b0f137 + $fShowWordTree_$cshowList :: + GHC.Show.Show word => [WordChain.WordTree word] -> GHC.Show.ShowS + {- Arity: 3, Strictness: , + Unfolding: InlineRule (3, True, False) + (\ @ word + ($dShow :: GHC.Show.Show word) + (eta :: [WordChain.WordTree word]) + (eta1 :: GHC.Base.String) -> + GHC.Show.showList__ + @ (WordChain.WordTree word) + (WordChain.$fShowWordTree_$cshowsPrec + @ word + $dShow + WordChain.$fShowWordTree1) + eta + eta1) -} +4819b2471c4b9cd9bb224b5467b0f137 + $fShowWordTree_$cshowsPrec :: + GHC.Show.Show word => + GHC.Types.Int -> WordChain.WordTree word -> GHC.Show.ShowS + {- Arity: 3, + Strictness: , + Inline: INLINE[0], + Unfolding: InlineRule (3, True, False) + (\ @ word + (w :: GHC.Show.Show word) + (w1 :: GHC.Types.Int) + (w2 :: WordChain.WordTree word) -> + case w1 of ww { GHC.Types.I# ww1 -> + case w2 of ww2 { WordChain.Node ww3 ww4 -> + WordChain.$w$cshowsPrec @ word w ww1 ww3 ww4 } }) -} +cd49c7cea55ecd73a718f0bccf2cf385 + $tc'Node :: GHC.Types.TyCon + {- HasNoCafRefs, Strictness: m, + Unfolding: (GHC.Types.TyCon + 5651780734012126405## + 3501174608125996139## + WordChain.$trModule + WordChain.$tc'Node1) -} +2cd14893830bae32169f23281df01f2f + $tc'Node1 :: GHC.Types.TrName + {- HasNoCafRefs, Strictness: m1, + Unfolding: (GHC.Types.TrNameS "'Node"#) -} +be31f19127d4e3093f8684392146358b + $tcWordTree :: GHC.Types.TyCon + {- HasNoCafRefs, Strictness: m, + Unfolding: (GHC.Types.TyCon + 8243262556201794890## + 7955915445749094627## + WordChain.$trModule + WordChain.$tcWordTree1) -} +72252f3e0fae173c37f814daf7023209 + $tcWordTree1 :: GHC.Types.TrName + {- HasNoCafRefs, Strictness: m1, + Unfolding: (GHC.Types.TrNameS "WordTree"#) -} +a3b0754a6362da7d4ffc43267fd06a16 + $trModule :: GHC.Types.Module + {- HasNoCafRefs, Strictness: m, + Unfolding: (GHC.Types.Module + WordChain.$trModule2 + WordChain.$trModule1) -} +a726a6b55c934b32fcd1f6892d6d3a4a + $trModule1 :: GHC.Types.TrName + {- HasNoCafRefs, Strictness: m1, + Unfolding: (GHC.Types.TrNameS "WordChain"#) -} +b5d26719fcb45a470812945eb22368ec + $trModule2 :: GHC.Types.TrName + {- HasNoCafRefs, Strictness: m1, + Unfolding: (GHC.Types.TrNameS + "word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi"#) -} +4819b2471c4b9cd9bb224b5467b0f137 + $w$cshowsPrec :: + GHC.Show.Show word => + GHC.Prim.Int# + -> word -> [WordChain.WordTree word] -> GHC.Show.ShowS + {- Arity: 4, Strictness: , + Inline: [0] -} +c097bf52bb25d142b7b7b472a771b34b + $wbuildTree :: + [GHC.Base.String] + -> GHC.Base.String + -> (# GHC.Base.String, [WordChain.WordTree GHC.Base.String] #) + {- Arity: 2, Strictness: , Inline: [0] -} +4819b2471c4b9cd9bb224b5467b0f137 + data WordTree word = Node word [WordChain.WordTree word] + RecFlag: Recursive +e95fffeac12a970fb01bd5ea9a09e742 + allTheWords :: GHC.Types.IO [GHC.Base.String] + {- Arity: 1, Strictness: , + Unfolding: InlineRule (0, True, True) + WordChain.allTheWords1 + `cast` + (Sym (GHC.Types.N:IO[0] <[GHC.Base.String]>_R)) -} +55d4357110e19039a4d8f120041e2051 + allTheWords1 :: + GHC.Prim.State# GHC.Prim.RealWorld + -> (# GHC.Prim.State# GHC.Prim.RealWorld, [GHC.Base.String] #) + {- Arity: 1, Strictness: , + Unfolding: (\ (eta :: GHC.Prim.State# + GHC.Prim.RealWorld)[OneShot] -> + case GHC.IO.Handle.FD.openFile1 + WordChain.allTheWords2 + GHC.IO.IOMode.ReadMode + eta of ds1 { (#,#) ipv ipv1 -> + case GHC.IO.Handle.Text.hGetContents1 + ipv1 + ipv of ds { (#,#) ipv2 ipv3 -> + (# ipv2, Data.OldList.lines ipv3 #) } }) -} +64fa576b94dc6b99ae4bed3e4ce0cc54 + allTheWords2 :: [GHC.Types.Char] + {- Unfolding: (GHC.CString.unpackCString# + "/usr/share/dict/words"#) -} +b38c5135812d15a4d5ffe8ad0d70a5eb + buildTree :: + [GHC.Base.String] + -> GHC.Base.String -> WordChain.WordTree GHC.Base.String + {- Arity: 2, Strictness: m, Inline: INLINE[0], + Unfolding: InlineRule (2, True, False) + (\ (w :: [GHC.Base.String]) (w1 :: GHC.Base.String) -> + case WordChain.$wbuildTree w w1 of ww { (#,#) ww1 ww2 -> + WordChain.Node @ GHC.Base.String ww1 ww2 }) -} +87202fbca938d4cee0c009bbdefbdd4f + isNeighbor :: GHC.Base.String -> GHC.Base.String -> GHC.Types.Bool + {- Arity: 2, Strictness: , + Unfolding: (\ (a :: GHC.Base.String) (b :: GHC.Base.String) -> + case GHC.Integer.Type.eqInteger# + (WordChain.isNeighbor_go a b WordChain.isNeighbor2) + WordChain.isNeighbor1 of wild { DEFAULT -> + GHC.Prim.tagToEnum# @ GHC.Types.Bool wild }) -} +9ae8d38950855d7d730feb2865a0a851 + isNeighbor1 :: GHC.Integer.Type.Integer + {- HasNoCafRefs, Unfolding: (1) -} +d4f8fdd35e6099a49be332e253194fc8 + isNeighbor2 :: GHC.Integer.Type.Integer + {- HasNoCafRefs, Unfolding: (0) -} +56db96b0934d01467acc9fdef547af7c + isNeighbor_go :: + [GHC.Types.Char] + -> [GHC.Types.Char] + -> GHC.Integer.Type.Integer + -> GHC.Integer.Type.Integer + {- Arity: 3, Strictness: -} +136fc51f682d3df79ebbed6d5c433128 + neighbors :: + [GHC.Base.String] -> GHC.Base.String -> [GHC.Base.String] + {- Arity: 2, Strictness: , + Unfolding: (\ (dict :: [GHC.Base.String]) + (word :: GHC.Base.String) -> + let { + f :: GHC.Types.Int + = case GHC.List.$wlenAcc + @ GHC.Types.Char + word + 0# of ww2 { DEFAULT -> + GHC.Types.I# ww2 } + } in + GHC.List.filter + @ [GHC.Types.Char] + (\ (x :: [GHC.Types.Char]) -> + case f of wild { GHC.Types.I# x1 -> + case GHC.List.$wlenAcc @ GHC.Types.Char x 0# of ww2 { DEFAULT -> + case GHC.Prim.tagToEnum# + @ GHC.Types.Bool + (GHC.Prim.==# x1 ww2) of wild1 { + GHC.Types.False -> GHC.Types.False + GHC.Types.True -> WordChain.isNeighbor word x } } }) + dict) -} +924de5c0844d00501e6b362f83074a42 + shortestPath :: + WordChain.WordTree GHC.Base.String + -> GHC.Base.String + -> GHC.Base.String + -> Data.Either.Either GHC.Base.String [GHC.Base.String] + {- Arity: 3, Strictness: , + Unfolding: (\ (words :: WordChain.WordTree GHC.Base.String) + (start :: GHC.Base.String) + (end :: GHC.Base.String) -> + case GHC.Base.eqString start end of wild { + GHC.Types.False + -> case GHC.List.$wlenAcc + @ GHC.Types.Char + start + 0# of ww2 { DEFAULT -> + case GHC.List.$wlenAcc @ GHC.Types.Char end 0# of ww1 { DEFAULT -> + case GHC.Prim.tagToEnum# + @ GHC.Types.Bool + (GHC.Prim./=# ww2 ww1) of wild1 { + GHC.Types.False + -> case words of wild2 { WordChain.Node word nodes -> + Data.Either.Right + @ GHC.Base.String + @ [GHC.Base.String] + (letrec { + go :: [WordChain.WordTree GHC.Base.String] -> [[GHC.Types.Char]] + {- Arity: 1, Strictness: -} + = \ (ds :: [WordChain.WordTree GHC.Base.String]) -> + case ds of wild3 { + [] -> GHC.Types.[] @ [GHC.Types.Char] + : y ys + -> case y of wild4 { WordChain.Node a ds1 -> + case GHC.Base.eqString a end of wild5 { + GHC.Types.False -> go ys + GHC.Types.True + -> GHC.Types.: @ [GHC.Types.Char] a (go ys) } } } + } in + go nodes) } + GHC.Types.True -> WordChain.shortestPath1 } } } + GHC.Types.True + -> Data.Either.Right + @ GHC.Base.String + @ [GHC.Base.String] + (GHC.Types.: + @ GHC.Base.String + start + (GHC.Types.[] @ GHC.Base.String)) }) -} +d93bda8353cfc293a9e9a75ef4595ef1 + shortestPath1 :: + Data.Either.Either [GHC.Types.Char] [GHC.Base.String] + {- Strictness: m1, + Unfolding: (Data.Either.Left + @ [GHC.Types.Char] + @ [GHC.Base.String] + WordChain.shortestPath2) -} +59ada44d558713660b63beda8258e590 + shortestPath2 :: [GHC.Types.Char] + {- Unfolding: (GHC.CString.unpackCString# "length mismatch"#) -} +instance [safe] GHC.Show.Show [WordChain.WordTree] + = WordChain.$fShowWordTree +vectorised variables: +vectorised tycons: +vectorised reused tycons: +parallel variables: +parallel tycons: +trusted: safe +require own pkg trusted: False + diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-exe/word-chain-exe b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-exe/word-chain-exe new file mode 100755 index 0000000..06ecdc4 Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-exe/word-chain-exe differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-exe/word-chain-exe-tmp/Main.hi b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-exe/word-chain-exe-tmp/Main.hi new file mode 100644 index 0000000..a43993d Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-exe/word-chain-exe-tmp/Main.hi differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-exe/word-chain-exe-tmp/Main.o b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-exe/word-chain-exe-tmp/Main.o new file mode 100644 index 0000000..a50c610 Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-exe/word-chain-exe-tmp/Main.o differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-exe/word-chain-exe-tmp/app/Main.dump-hi b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-exe/word-chain-exe-tmp/app/Main.dump-hi new file mode 100644 index 0000000..a19639a --- /dev/null +++ b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-exe/word-chain-exe-tmp/app/Main.dump-hi @@ -0,0 +1,70 @@ + +==================== FINAL INTERFACE ==================== +2016-11-15 18:52:01.453152 UTC + +interface main@main:Main 8001 + interface hash: 6b2c86fad00a25755a34290f1c947307 + ABI hash: fef62f73d6868c688bdf7ff0657fbb59 + export-list hash: 20019b5f9effa22342fe8ae940342fc0 + orphan hash: 693e9af84d3dfcc71e640e005bdc5e2e + flag hash: 8a209efc532d82850387c0c55069de5c + sig of: Nothing + used TH splices: False + where +exports: + Main.main +module dependencies: +package dependencies: base-4.9.0.0* ghc-prim-0.5.0.0 + integer-gmp-1.0.0.1 + word-chain-0.1.0.0@word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi +orphans: base-4.9.0.0:GHC.Base base-4.9.0.0:GHC.Float +family instance modules: base-4.9.0.0:Control.Applicative + base-4.9.0.0:Data.Either base-4.9.0.0:Data.Functor.Const + base-4.9.0.0:Data.Monoid base-4.9.0.0:Data.Type.Equality + base-4.9.0.0:GHC.Generics base-4.9.0.0:GHC.IO.Exception + base-4.9.0.0:GHC.TypeLits +import -/ base-4.9.0.0:GHC.Base 8ed3be81c0707b322f975a84ae1bb816 +import -/ base-4.9.0.0:Prelude b9bddb97799837fe67a8d00939a5b6c3 +import -/ ghc-prim-0.5.0.0:GHC.Types 7378e41b7749213c8c88ceb6b0665d4c +import -/ word-chain-0.1.0.0@word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi:WordChain 35ed563f5860c57e614f74eede3dc434 +d6831ef04cb9301b090dfae6f7bb7ec7 + $trModule :: GHC.Types.Module + {- HasNoCafRefs, Strictness: m, + Unfolding: (GHC.Types.Module Main.$trModule2 Main.$trModule1) -} +847d9fc3b8e6f0b424199f36b4999bb2 + $trModule1 :: GHC.Types.TrName + {- HasNoCafRefs, Strictness: m1, + Unfolding: (GHC.Types.TrNameS "Main"#) -} +24ef6042833e75ffd7aa98b83ecca98d + $trModule2 :: GHC.Types.TrName + {- HasNoCafRefs, Strictness: m1, + Unfolding: (GHC.Types.TrNameS "main"#) -} +739fac1c07fa089bdc3c42a0cad03048 + main :: GHC.Types.IO () + {- Arity: 1, HasNoCafRefs, Strictness: , + Unfolding: InlineRule (0, True, True) + Main.main1 `cast` (Sym (GHC.Types.N:IO[0] <()>_R)) -} +7db6cd8cfc6f1ed6808bf2e24ad53a97 + main1 :: + GHC.Prim.State# GHC.Prim.RealWorld + -> (# GHC.Prim.State# GHC.Prim.RealWorld, () #) + {- Arity: 1, HasNoCafRefs, Strictness: , + Unfolding: InlineRule (1, True, False) + (\ (s :: GHC.Prim.State# GHC.Prim.RealWorld)[OneShot] -> + (# s, GHC.Tuple.() #)) -} +220f99690321cb2dff4984f9e190db03 + main2 :: + GHC.Prim.State# GHC.Prim.RealWorld + -> (# GHC.Prim.State# GHC.Prim.RealWorld, () #) + {- Arity: 1, + Unfolding: (GHC.TopHandler.runMainIO1 + @ () + Main.main1 `cast` (Sym (GHC.Types.N:IO[0] <()>_R))) -} +vectorised variables: +vectorised tycons: +vectorised reused tycons: +parallel variables: +parallel tycons: +trusted: safe +require own pkg trusted: False + diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-test/word-chain-test b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-test/word-chain-test new file mode 100755 index 0000000..d109a17 Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-test/word-chain-test differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-test/word-chain-test-tmp/Main.hi b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-test/word-chain-test-tmp/Main.hi new file mode 100644 index 0000000..26dded1 Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-test/word-chain-test-tmp/Main.hi differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-test/word-chain-test-tmp/Main.o b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-test/word-chain-test-tmp/Main.o new file mode 100644 index 0000000..7fed8b1 Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-test/word-chain-test-tmp/Main.o differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-test/word-chain-test-tmp/test/Spec.dump-hi b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-test/word-chain-test-tmp/test/Spec.dump-hi new file mode 100644 index 0000000..8e7176f --- /dev/null +++ b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/word-chain-test/word-chain-test-tmp/test/Spec.dump-hi @@ -0,0 +1,242 @@ + +==================== FINAL INTERFACE ==================== +2016-11-15 18:52:03.023743 UTC + +interface main@main:Main 8001 + interface hash: da1d5690bd9d0d600c8ae1f123703d85 + ABI hash: 77b768f2cb5d0e2b8e80b63c235d5307 + export-list hash: b6edda424ef6366ba71b8f978900733d + orphan hash: a2ae7abb416bad40cb8d0cedf6c08a34 + flag hash: f251a227524aa2814c9f6678cdfa39fb + sig of: Nothing + used TH splices: False + where +exports: + Main.main +module dependencies: +package dependencies: HUnit-1.3.1.2@HUnit-1.3.1.2-LggooYwT1UPHSoNYWvAdgk + QuickCheck-2.8.2@QuickCheck-2.8.2-B7cXgOk7OAiKrNRsk2SfuA + ansi-terminal-0.6.2.3@ansi-terminal-0.6.2.3-448ipfN5j28Ha0AgPiJmdI + array-0.5.1.1@array-0.5.1.1 + async-2.1.0@async-2.1.0-J6Pl8k3L4PKGEpjYdgwiIf base-4.9.0.0 + containers-0.5.7.1@containers-0.5.7.1 + deepseq-1.4.2.0@deepseq-1.4.2.0 ghc-boot-th-8.0.1@ghc-boot-th-8.0.1 + ghc-prim-0.5.0.0 hspec-2.2.3@hspec-2.2.3-3A7gcWeDS0m19mITkn1B7w + hspec-core-2.2.3@hspec-core-2.2.3-12WIy50J3DO9ac2aAucsOq + hspec-expectations-0.7.2@hspec-expectations-0.7.2-2hcUzmYSxY99w7X9aRVhtQ + integer-gmp-1.0.0.1 pretty-1.1.3.3@pretty-1.1.3.3 + primitive-0.6.1.0@primitive-0.6.1.0-Ip44DqhfCp21tTUYbecwa + quickcheck-io-0.1.3@quickcheck-io-0.1.3-5Hh2GbBZjnpHefdPBp5l4r + random-1.1@random-1.1-54KmMHXjttlERYcr1mvsAe + setenv-0.1.1.3@setenv-0.1.1.3-5zeeXxY3qb3AsPnIgczcsm + stm-2.4.4.1@stm-2.4.4.1-4z2NRWnB0NIIUvSJsHW0kF + template-haskell-2.11.0.0 + tf-random-0.5@tf-random-0.5-4z8OJUaXC1FRNfrLPFWAD + time-1.6.0.1@time-1.6.0.1 transformers-0.5.2.0@transformers-0.5.2.0 + word-chain-0.1.0.0@word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi +orphans: base-4.9.0.0:GHC.Base base-4.9.0.0:GHC.Float + quickcheck-io-0.1.3@quickcheck-io-0.1.3-5Hh2GbBZjnpHefdPBp5l4r:Test.QuickCheck.IO + stm-2.4.4.1@stm-2.4.4.1-4z2NRWnB0NIIUvSJsHW0kF:Control.Monad.STM + time-1.6.0.1@time-1.6.0.1:Data.Time.Calendar.Gregorian + time-1.6.0.1@time-1.6.0.1:Data.Time.Format.Parse + time-1.6.0.1@time-1.6.0.1:Data.Time.LocalTime.LocalTime + transformers-0.5.2.0@transformers-0.5.2.0:Control.Monad.Trans.Error +family instance modules: base-4.9.0.0:Control.Applicative + base-4.9.0.0:Data.Complex base-4.9.0.0:Data.Either + base-4.9.0.0:Data.Functor.Const base-4.9.0.0:Data.Functor.Identity + base-4.9.0.0:Data.List.NonEmpty base-4.9.0.0:Data.Monoid + base-4.9.0.0:Data.Semigroup base-4.9.0.0:Data.Type.Equality + base-4.9.0.0:Data.Version base-4.9.0.0:Data.Void + base-4.9.0.0:GHC.Exts base-4.9.0.0:GHC.Generics + base-4.9.0.0:GHC.IO.Exception base-4.9.0.0:GHC.TypeLits + containers-0.5.7.1@containers-0.5.7.1:Data.IntMap.Base + containers-0.5.7.1@containers-0.5.7.1:Data.IntSet.Base + containers-0.5.7.1@containers-0.5.7.1:Data.Map.Base + containers-0.5.7.1@containers-0.5.7.1:Data.Sequence + containers-0.5.7.1@containers-0.5.7.1:Data.Set.Base + ghc-boot-th-8.0.1@ghc-boot-th-8.0.1:GHC.LanguageExtensions.Type + hspec-core-2.2.3@hspec-core-2.2.3-12WIy50J3DO9ac2aAucsOq:Test.Hspec.Core.Example + pretty-1.1.3.3@pretty-1.1.3.3:Text.PrettyPrint.Annotated.HughesPJ + pretty-1.1.3.3@pretty-1.1.3.3:Text.PrettyPrint.HughesPJ + primitive-0.6.1.0@primitive-0.6.1.0-Ip44DqhfCp21tTUYbecwa:Control.Monad.Primitive + template-haskell-2.11.0.0:Language.Haskell.TH.Syntax +import -/ base-4.9.0.0:Control.Monad 7767aebfd53f0b584cef2fe66ad3986c +import -/ base-4.9.0.0:Data.Either bd9f099b82d4ed2d98c56d7144ac6957 +import -/ base-4.9.0.0:Prelude b9bddb97799837fe67a8d00939a5b6c3 +import -/ ghc-prim-0.5.0.0:GHC.Types 7378e41b7749213c8c88ceb6b0665d4c +import -/ hspec-2.2.3@hspec-2.2.3-3A7gcWeDS0m19mITkn1B7w:Test.Hspec 3008fc44f12ec19c4fa900e0137653ce +import -/ hspec-2.2.3@hspec-2.2.3-3A7gcWeDS0m19mITkn1B7w:Test.Hspec.Runner 9c62f2fd3eb2a1038a73fc8c4e56e460 +import -/ hspec-core-2.2.3@hspec-core-2.2.3-12WIy50J3DO9ac2aAucsOq:Test.Hspec.Core.Runner 034a881e6958254a4c0f2864bbd589c8 +import -/ hspec-core-2.2.3@hspec-core-2.2.3-12WIy50J3DO9ac2aAucsOq:Test.Hspec.Core.Spec 32c482e5247461f70a13ee0ebc759327 +import -/ hspec-core-2.2.3@hspec-core-2.2.3-12WIy50J3DO9ac2aAucsOq:Test.Hspec.Core.Spec.Monad 2e6f037f2b368cc99aa4cfff92adec68 +import -/ hspec-core-2.2.3@hspec-core-2.2.3-12WIy50J3DO9ac2aAucsOq:Test.Hspec.Options 06f1a5a997a2019a5a33eca438c40b7e +import -/ hspec-expectations-0.7.2@hspec-expectations-0.7.2-2hcUzmYSxY99w7X9aRVhtQ:Test.Hspec.Expectations ca5f5a50dd0587de1f261c5a819c188f +import -/ word-chain-0.1.0.0@word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi:WordChain 35ed563f5860c57e614f74eede3dc434 +1ecc892395306ff03f98b5069f73183c + $s$fEqEither :: + GHC.Classes.Eq + (Data.Either.Either [GHC.Types.Char] [GHC.Base.String]) + {- HasNoCafRefs, Strictness: m, Inline: [ALWAYS] CONLIKE, + Unfolding: DFun:. + @ (Data.Either.Either [GHC.Types.Char] [GHC.Base.String]) + (Data.Either.$fEqEither_$c== + @ [GHC.Types.Char] + @ [GHC.Base.String] + Main.$s$fEqEither2 + Main.$s$fEqEither1) + (Data.Either.$fEqEither_$c/= + @ [GHC.Types.Char] + @ [GHC.Base.String] + Main.$s$fEqEither2 + Main.$s$fEqEither1) -} +515a590f786bc09d2c7a8f253ec1c19d + $s$fEqEither1 :: GHC.Classes.Eq [GHC.Base.String] + {- Strictness: m, + Unfolding: InlineRule (0, True, True) + GHC.Classes.$fEq[]_$s$fEq[]2 -} +c547b33e1d7de64c32d0d6f356d3c56e + $s$fEqEither2 :: GHC.Classes.Eq [GHC.Types.Char] + {- Strictness: m, + Unfolding: InlineRule (0, True, True) + GHC.Classes.$fEq[]_$s$fEq[]1 -} +0e05c0bf5bf5973028c67b518ddc3c49 + $s$fShowEither :: + GHC.Show.Show + (Data.Either.Either [GHC.Types.Char] [GHC.Base.String]) + {- Strictness: m, Inline: [ALWAYS] CONLIKE, + Unfolding: DFun:. + @ (Data.Either.Either [GHC.Types.Char] [GHC.Base.String]) + (Data.Either.$fShowEither_$cshowsPrec + @ [GHC.Types.Char] + @ [GHC.Base.String] + Main.$s$fShowEither2 + Main.$s$fShowEither1) + (Data.Either.$fShowEither_$cshow + @ [GHC.Types.Char] + @ [GHC.Base.String] + Main.$s$fShowEither2 + Main.$s$fShowEither1) + Main.$s$fShowEither_$s$fShowEither_$cshowList -} +1da2a745a48fb36ada97bf89072e6159 + $s$fShowEither1 :: GHC.Show.Show [GHC.Base.String] + {- Strictness: m, + Unfolding: InlineRule (0, True, True) + GHC.Show.$fShow[]_$s$fShow[]2 -} +a86cbe11e026d7883c66771cfe4b29f8 + $s$fShowEither2 :: GHC.Show.Show [GHC.Types.Char] + {- Strictness: m, + Unfolding: InlineRule (0, True, True) + GHC.Show.$fShow[]_$s$fShow[]1 -} +e39db8ee9f2070b4659c70c473f05a32 + $s$fShowEither_$s$fShowEither_$cshowList :: + [Data.Either.Either [GHC.Types.Char] [GHC.Base.String]] + -> GHC.Show.ShowS + {- Arity: 2, Strictness: , + Unfolding: InlineRule (2, True, False) + (\ (eta :: [Data.Either.Either [GHC.Types.Char] [GHC.Base.String]]) + (eta1 :: GHC.Base.String) -> + GHC.Show.showList__ + @ (Data.Either.Either [GHC.Types.Char] [GHC.Base.String]) + (Data.Either.$fShowEither_$cshowsPrec + @ [GHC.Types.Char] + @ [GHC.Base.String] + Main.$s$fShowEither2 + Main.$s$fShowEither1 + Data.Either.$fShowEither1) + eta + eta1) -} +d6831ef04cb9301b090dfae6f7bb7ec7 + $trModule :: GHC.Types.Module + {- HasNoCafRefs, Strictness: m, + Unfolding: (GHC.Types.Module Main.$trModule2 Main.$trModule1) -} +847d9fc3b8e6f0b424199f36b4999bb2 + $trModule1 :: GHC.Types.TrName + {- HasNoCafRefs, Strictness: m1, + Unfolding: (GHC.Types.TrNameS "Main"#) -} +24ef6042833e75ffd7aa98b83ecca98d + $trModule2 :: GHC.Types.TrName + {- HasNoCafRefs, Strictness: m1, + Unfolding: (GHC.Types.TrNameS "main"#) -} +d1aec0e36f41d007ec5389813198f7ae + main :: GHC.Types.IO () + {- Arity: 1, Strictness: , + Unfolding: InlineRule (0, True, True) + Main.main1 `cast` (Sym (GHC.Types.N:IO[0] <()>_R)) -} +c98be0ea7fbf064b44e85d31ff43c3de + main1 :: + GHC.Prim.State# GHC.Prim.RealWorld + -> (# GHC.Prim.State# GHC.Prim.RealWorld, () #) + {- Arity: 1, Strictness: , + Unfolding: (\ (eta :: GHC.Prim.State# + GHC.Prim.RealWorld)[OneShot] -> + case Test.Hspec.Core.Runner.hspec2 + Test.Hspec.Options.defaultConfig + Main.main2 + `cast` + (Trans + (Sym (GHC.Types.N:IO[0] + <((), [Test.Hspec.Core.Tree.SpecTree ()])>_R)) + (Trans + (Sym (Control.Monad.Trans.Writer.Lazy.N:WriterT[0] + <[Test.Hspec.Core.Tree.SpecTree ()]>_N + _R + <()>_N)) + (Sym (Test.Hspec.Core.Spec.Monad.N:SpecM[0] <()>_N) <()>_N))) + eta of ds1 { (#,#) ipv ipv1 -> + case ipv1 of wild { Test.Hspec.Core.Runner.Summary ds ds2 -> + case ds2 of wild1 { GHC.Types.I# x -> + case x of wild2 { + DEFAULT -> System.Exit.die2 @ () ipv + 0# -> (# ipv, GHC.Tuple.() #) } } } }) -} +2e9919cffe715994d7372c87b440bfc7 + main2 :: + GHC.Prim.State# GHC.Prim.RealWorld + -> (# GHC.Prim.State# GHC.Prim.RealWorld, + ((), + [Test.Hspec.Core.Tree.Tree + (Test.Hspec.Core.Example.ActionWith ()) + (Test.Hspec.Core.Tree.Item ())]) #) + {- Arity: 1 -} +59ccd8ba9729c124ba23ba4ff8af450b + main3 :: + GHC.Prim.State# GHC.Prim.RealWorld + -> (# GHC.Prim.State# GHC.Prim.RealWorld, () #) + {- Arity: 1, + Unfolding: (GHC.TopHandler.runMainIO1 + @ () + Main.main1 `cast` (Sym (GHC.Types.N:IO[0] <()>_R))) -} +"SPEC/Main $fEqEither @ [Char] @ [String]" [ALWAYS] forall ($dEq :: GHC.Classes.Eq + [GHC.Types.Char]) + ($dEq1 :: GHC.Classes.Eq + [GHC.Base.String]) + Data.Either.$fEqEither @ [GHC.Types.Char] + @ [GHC.Base.String] + $dEq + $dEq1 + = Main.$s$fEqEither +"SPEC/Main $fShowEither @ [Char] @ [String]" [ALWAYS] forall ($dShow :: GHC.Show.Show + [GHC.Types.Char]) + ($dShow1 :: GHC.Show.Show + [GHC.Base.String]) + Data.Either.$fShowEither @ [GHC.Types.Char] + @ [GHC.Base.String] + $dShow + $dShow1 + = Main.$s$fShowEither +"SPEC/Main $fShowEither_$cshowList @ [Char] @ [String]" [ALWAYS] forall ($dShow :: GHC.Show.Show + [GHC.Types.Char]) + ($dShow1 :: GHC.Show.Show + [GHC.Base.String]) + Data.Either.$fShowEither_$cshowList @ [GHC.Types.Char] + @ [GHC.Base.String] + $dShow + $dShow1 + = Main.$s$fShowEither_$s$fShowEither_$cshowList +vectorised variables: +vectorised tycons: +vectorised reused tycons: +parallel variables: +parallel tycons: +trusted: none +require own pkg trusted: False + diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/package.conf.inplace/package.cache b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/package.conf.inplace/package.cache new file mode 100644 index 0000000..d62bd5b Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/package.conf.inplace/package.cache differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/package.conf.inplace/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi.conf b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/package.conf.inplace/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi.conf new file mode 100644 index 0000000..f1acb6e --- /dev/null +++ b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/package.conf.inplace/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi.conf @@ -0,0 +1,26 @@ +name: word-chain +version: 0.1.0.0 +id: word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi +key: word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi +license: BSD3 +copyright: 2016 Author name here +maintainer: example@example.com +homepage: https://github.com/githubuser/word-chain#readme +synopsis: Initial project template from stack +description: + Please see README.md +category: Web +author: Author name here +exposed: True +exposed-modules: + WordChain +abi: +trusted: False +import-dirs: /Users/jchae/projects/katas/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build +library-dirs: /Users/jchae/projects/katas/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build +data-dir: /Users/jchae/projects/katas/word-chain +hs-libraries: HSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi +depends: + base-4.9.0.0 +haddock-interfaces: /Users/jchae/projects/katas/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/doc/html/word-chain/word-chain.haddock +haddock-html: /Users/jchae/projects/katas/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/doc/html/word-chain diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/setup-config b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/setup-config new file mode 100644 index 0000000..b0fc3e3 Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/setup-config differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/stack-build-cache b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/stack-build-cache new file mode 100644 index 0000000..398eaaa Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/stack-build-cache differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/stack-cabal-mod b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/stack-cabal-mod new file mode 100644 index 0000000..0d41a20 Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/stack-cabal-mod differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/stack-config-cache b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/stack-config-cache new file mode 100644 index 0000000..4fab8de Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/stack-config-cache differ diff --git a/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/stack-test-success b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/stack-test-success new file mode 100644 index 0000000..29e1aa6 Binary files /dev/null and b/word-chain/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/stack-test-success differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/bin/word-chain-exe b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/bin/word-chain-exe new file mode 100755 index 0000000..2bc4804 Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/bin/word-chain-exe differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/doc/word-chain-0.1.0.0/LICENSE b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/doc/word-chain-0.1.0.0/LICENSE new file mode 100644 index 0000000..fc03544 --- /dev/null +++ b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/doc/word-chain-0.1.0.0/LICENSE @@ -0,0 +1,30 @@ +Copyright Author name here (c) 2016 + +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Author name here nor the names of other + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/HUnit-1.3.1.2-LggooYwT1UPHSoNYWvAdgk b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/HUnit-1.3.1.2-LggooYwT1UPHSoNYWvAdgk new file mode 100644 index 0000000..325c0a7 Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/HUnit-1.3.1.2-LggooYwT1UPHSoNYWvAdgk differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/QuickCheck-2.8.2-B7cXgOk7OAiKrNRsk2SfuA b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/QuickCheck-2.8.2-B7cXgOk7OAiKrNRsk2SfuA new file mode 100644 index 0000000..654a04f Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/QuickCheck-2.8.2-B7cXgOk7OAiKrNRsk2SfuA differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/ansi-terminal-0.6.2.3-448ipfN5j28Ha0AgPiJmdI b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/ansi-terminal-0.6.2.3-448ipfN5j28Ha0AgPiJmdI new file mode 100644 index 0000000..716ca4e Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/ansi-terminal-0.6.2.3-448ipfN5j28Ha0AgPiJmdI differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/async-2.1.0-J6Pl8k3L4PKGEpjYdgwiIf b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/async-2.1.0-J6Pl8k3L4PKGEpjYdgwiIf new file mode 100644 index 0000000..fe09826 Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/async-2.1.0-J6Pl8k3L4PKGEpjYdgwiIf differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/hspec-2.2.3-3A7gcWeDS0m19mITkn1B7w b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/hspec-2.2.3-3A7gcWeDS0m19mITkn1B7w new file mode 100644 index 0000000..5a24aa8 Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/hspec-2.2.3-3A7gcWeDS0m19mITkn1B7w differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/hspec-core-2.2.3-12WIy50J3DO9ac2aAucsOq b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/hspec-core-2.2.3-12WIy50J3DO9ac2aAucsOq new file mode 100644 index 0000000..6657e27 Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/hspec-core-2.2.3-12WIy50J3DO9ac2aAucsOq differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/hspec-discover-2.2.3-4rui0mszaOW7JLbEGhMbpG b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/hspec-discover-2.2.3-4rui0mszaOW7JLbEGhMbpG new file mode 100644 index 0000000..65ad147 Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/hspec-discover-2.2.3-4rui0mszaOW7JLbEGhMbpG differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/hspec-expectations-0.7.2-2hcUzmYSxY99w7X9aRVhtQ b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/hspec-expectations-0.7.2-2hcUzmYSxY99w7X9aRVhtQ new file mode 100644 index 0000000..ddd7cdb Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/hspec-expectations-0.7.2-2hcUzmYSxY99w7X9aRVhtQ differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/primitive-0.6.1.0-Ip44DqhfCp21tTUYbecwa b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/primitive-0.6.1.0-Ip44DqhfCp21tTUYbecwa new file mode 100644 index 0000000..8dede10 Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/primitive-0.6.1.0-Ip44DqhfCp21tTUYbecwa differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/quickcheck-io-0.1.3-5Hh2GbBZjnpHefdPBp5l4r b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/quickcheck-io-0.1.3-5Hh2GbBZjnpHefdPBp5l4r new file mode 100644 index 0000000..d962b3c Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/quickcheck-io-0.1.3-5Hh2GbBZjnpHefdPBp5l4r differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/random-1.1-54KmMHXjttlERYcr1mvsAe b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/random-1.1-54KmMHXjttlERYcr1mvsAe new file mode 100644 index 0000000..ed13b12 Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/random-1.1-54KmMHXjttlERYcr1mvsAe differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/setenv-0.1.1.3-5zeeXxY3qb3AsPnIgczcsm b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/setenv-0.1.1.3-5zeeXxY3qb3AsPnIgczcsm new file mode 100644 index 0000000..818165e Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/setenv-0.1.1.3-5zeeXxY3qb3AsPnIgczcsm differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/stm-2.4.4.1-4z2NRWnB0NIIUvSJsHW0kF b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/stm-2.4.4.1-4z2NRWnB0NIIUvSJsHW0kF new file mode 100644 index 0000000..717a8de Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/stm-2.4.4.1-4z2NRWnB0NIIUvSJsHW0kF differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/tf-random-0.5-4z8OJUaXC1FRNfrLPFWAD b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/tf-random-0.5-4z8OJUaXC1FRNfrLPFWAD new file mode 100644 index 0000000..adb160c Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/tf-random-0.5-4z8OJUaXC1FRNfrLPFWAD differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi new file mode 100644 index 0000000..4fab8de Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/flag-cache/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/Lib.dyn_hi b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/Lib.dyn_hi new file mode 100644 index 0000000..907d71c Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/Lib.dyn_hi differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/Lib.hi b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/Lib.hi new file mode 100644 index 0000000..dcdeb0f Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/Lib.hi differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/WordChain.dyn_hi b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/WordChain.dyn_hi new file mode 100644 index 0000000..619b7eb Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/WordChain.dyn_hi differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/WordChain.hi b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/WordChain.hi new file mode 100644 index 0000000..c33bf3a Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/WordChain.hi differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/libHSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi-ghc8.0.1.dylib b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/libHSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi-ghc8.0.1.dylib new file mode 100755 index 0000000..37c669c Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/libHSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi-ghc8.0.1.dylib differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/libHSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi.a b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/libHSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi.a new file mode 100644 index 0000000..4ccc342 Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi/libHSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi.a differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/pkgdb/package.cache b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/pkgdb/package.cache new file mode 100644 index 0000000..184f6ec Binary files /dev/null and b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/pkgdb/package.cache differ diff --git a/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/pkgdb/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi.conf b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/pkgdb/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi.conf new file mode 100644 index 0000000..ee118b7 --- /dev/null +++ b/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/pkgdb/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi.conf @@ -0,0 +1,26 @@ +name: word-chain +version: 0.1.0.0 +id: word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi +key: word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi +license: BSD3 +copyright: 2016 Author name here +maintainer: example@example.com +homepage: https://github.com/githubuser/word-chain#readme +synopsis: Initial project template from stack +description: + Please see README.md +category: Web +author: Author name here +exposed: True +exposed-modules: + WordChain +abi: feec45bd4c23f5f58a15d83b7255817a +trusted: False +import-dirs: /Users/jchae/projects/katas/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi +library-dirs: /Users/jchae/projects/katas/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi +data-dir: /Users/jchae/projects/katas/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/share/x86_64-osx-ghc-8.0.1/word-chain-0.1.0.0 +hs-libraries: HSword-chain-0.1.0.0-AKHjdcGDePvFQyrr70bdDi +depends: + base-4.9.0.0 +haddock-interfaces: /Users/jchae/projects/katas/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/doc/word-chain-0.1.0.0/word-chain.haddock +haddock-html: /Users/jchae/projects/katas/word-chain/.stack-work/install/x86_64-osx/lts-7.4/8.0.1/doc/word-chain-0.1.0.0 diff --git a/word-chain/.stack-work/logs/HUnit-1.3.1.2.log b/word-chain/.stack-work/logs/HUnit-1.3.1.2.log new file mode 100644 index 0000000..f279de4 --- /dev/null +++ b/word-chain/.stack-work/logs/HUnit-1.3.1.2.log @@ -0,0 +1,11 @@ +Configuring HUnit-1.3.1.2... +Building HUnit-1.3.1.2... +Preprocessing library HUnit-1.3.1.2... +[1 of 5] Compiling Test.HUnit.Terminal ( Test/HUnit/Terminal.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/HUnit/Terminal.o ) +[2 of 5] Compiling Test.HUnit.Lang ( Test/HUnit/Lang.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/HUnit/Lang.o ) +[3 of 5] Compiling Test.HUnit.Base ( Test/HUnit/Base.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/HUnit/Base.o ) +[4 of 5] Compiling Test.HUnit.Text ( Test/HUnit/Text.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/HUnit/Text.o ) +[5 of 5] Compiling Test.HUnit ( Test/HUnit.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/HUnit.o ) +Installing library in +/Users/jchae/.stack/snapshots/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/HUnit-1.3.1.2-LggooYwT1UPHSoNYWvAdgk +Registering HUnit-1.3.1.2... diff --git a/word-chain/.stack-work/logs/hspec-2.2.3.log b/word-chain/.stack-work/logs/hspec-2.2.3.log new file mode 100644 index 0000000..4c2bb09 --- /dev/null +++ b/word-chain/.stack-work/logs/hspec-2.2.3.log @@ -0,0 +1,13 @@ +Configuring hspec-2.2.3... +Building hspec-2.2.3... +Preprocessing library hspec-2.2.3... +[1 of 7] Compiling Test.Hspec.HUnit ( src/Test/Hspec/HUnit.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/HUnit.o ) +[2 of 7] Compiling Test.Hspec.Formatters ( src/Test/Hspec/Formatters.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Formatters.o ) +[3 of 7] Compiling Test.Hspec.Discover ( src/Test/Hspec/Discover.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Discover.o ) +[4 of 7] Compiling Test.Hspec.Runner ( src/Test/Hspec/Runner.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Runner.o ) +[5 of 7] Compiling Test.Hspec.Core ( src/Test/Hspec/Core.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core.o ) +[6 of 7] Compiling Test.Hspec ( src/Test/Hspec.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec.o ) +[7 of 7] Compiling Test.Hspec.QuickCheck ( src/Test/Hspec/QuickCheck.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/QuickCheck.o ) +Installing library in +/Users/jchae/.stack/snapshots/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/hspec-2.2.3-3A7gcWeDS0m19mITkn1B7w +Registering hspec-2.2.3... diff --git a/word-chain/.stack-work/logs/hspec-core-2.2.3.log b/word-chain/.stack-work/logs/hspec-core-2.2.3.log new file mode 100644 index 0000000..40b0a73 --- /dev/null +++ b/word-chain/.stack-work/logs/hspec-core-2.2.3.log @@ -0,0 +1,23 @@ +Configuring hspec-core-2.2.3... +Building hspec-core-2.2.3... +Preprocessing library hspec-core-2.2.3... +[ 1 of 17] Compiling Test.Hspec.Timer ( src/Test/Hspec/Timer.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Timer.o ) +[ 2 of 17] Compiling Test.Hspec.Compat ( src/Test/Hspec/Compat.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Compat.o ) +[ 3 of 17] Compiling Test.Hspec.Core.Util ( src/Test/Hspec/Core/Util.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core/Util.o ) +[ 4 of 17] Compiling Test.Hspec.FailureReport ( src/Test/Hspec/FailureReport.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/FailureReport.o ) +[ 5 of 17] Compiling Test.Hspec.Core.QuickCheckUtil ( src/Test/Hspec/Core/QuickCheckUtil.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core/QuickCheckUtil.o ) +[ 6 of 17] Compiling Test.Hspec.Core.Example ( src/Test/Hspec/Core/Example.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core/Example.o ) +[ 7 of 17] Compiling Test.Hspec.Core.Tree ( src/Test/Hspec/Core/Tree.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core/Tree.o ) +[ 8 of 17] Compiling Test.Hspec.Core.Spec.Monad ( src/Test/Hspec/Core/Spec/Monad.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core/Spec/Monad.o ) +[ 9 of 17] Compiling Test.Hspec.Core.Spec ( src/Test/Hspec/Core/Spec.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core/Spec.o ) +[10 of 17] Compiling Test.Hspec.Core.Hooks ( src/Test/Hspec/Core/Hooks.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core/Hooks.o ) +[11 of 17] Compiling Test.Hspec.Core.Formatters.Internal ( src/Test/Hspec/Core/Formatters/Internal.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core/Formatters/Internal.o ) +[12 of 17] Compiling Test.Hspec.Core.Formatters ( src/Test/Hspec/Core/Formatters.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core/Formatters.o ) +[13 of 17] Compiling Test.Hspec.Options ( src/Test/Hspec/Options.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Options.o ) +[14 of 17] Compiling Test.Hspec.Config ( src/Test/Hspec/Config.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Config.o ) +[15 of 17] Compiling Test.Hspec.Core.Runner.Eval ( src/Test/Hspec/Core/Runner/Eval.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core/Runner/Eval.o ) +[16 of 17] Compiling Test.Hspec.Core.Runner ( src/Test/Hspec/Core/Runner.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core/Runner.o ) +[17 of 17] Compiling Test.Hspec.Core.QuickCheck ( src/Test/Hspec/Core/QuickCheck.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Core/QuickCheck.o ) +Installing library in +/Users/jchae/.stack/snapshots/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/hspec-core-2.2.3-12WIy50J3DO9ac2aAucsOq +Registering hspec-core-2.2.3... diff --git a/word-chain/.stack-work/logs/hspec-expectations-0.7.2.log b/word-chain/.stack-work/logs/hspec-expectations-0.7.2.log new file mode 100644 index 0000000..4ec172f --- /dev/null +++ b/word-chain/.stack-work/logs/hspec-expectations-0.7.2.log @@ -0,0 +1,19 @@ +Configuring hspec-expectations-0.7.2... +Building hspec-expectations-0.7.2... +Preprocessing library hspec-expectations-0.7.2... +[1 of 3] Compiling Test.Hspec.Expectations.Contrib ( src/Test/Hspec/Expectations/Contrib.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Expectations/Contrib.o ) +[2 of 3] Compiling Test.Hspec.Expectations.Matcher ( src/Test/Hspec/Expectations/Matcher.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Expectations/Matcher.o ) +[3 of 3] Compiling Test.Hspec.Expectations ( src/Test/Hspec/Expectations.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/Hspec/Expectations.o ) + +src/Test/Hspec/Expectations.hs:95:1: warning: [-Wredundant-constraints] + • Redundant constraint: Eq a + • In the type signature for: + compareWith :: (?loc::CallStack, Show a, Eq a) => + (a -> a -> Bool) -> String -> a -> a -> Expectation + +src/Test/Hspec/Expectations.hs:186:1: warning: [-Wincomplete-patterns] + Pattern match(es) are non-exhaustive + In an equation for ‘errorCall’: Patterns not matched: _ _ +Installing library in +/Users/jchae/.stack/snapshots/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/hspec-expectations-0.7.2-2hcUzmYSxY99w7X9aRVhtQ +Registering hspec-expectations-0.7.2... diff --git a/word-chain/.stack-work/logs/quickcheck-io-0.1.3.log b/word-chain/.stack-work/logs/quickcheck-io-0.1.3.log new file mode 100644 index 0000000..d496d1a --- /dev/null +++ b/word-chain/.stack-work/logs/quickcheck-io-0.1.3.log @@ -0,0 +1,7 @@ +Configuring quickcheck-io-0.1.3... +Building quickcheck-io-0.1.3... +Preprocessing library quickcheck-io-0.1.3... +[1 of 1] Compiling Test.QuickCheck.IO ( src/Test/QuickCheck/IO.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/Test/QuickCheck/IO.o ) +Installing library in +/Users/jchae/.stack/snapshots/x86_64-osx/lts-7.4/8.0.1/lib/x86_64-osx-ghc-8.0.1/quickcheck-io-0.1.3-5Hh2GbBZjnpHefdPBp5l4r +Registering quickcheck-io-0.1.3... diff --git a/word-chain/LICENSE b/word-chain/LICENSE new file mode 100644 index 0000000..fc03544 --- /dev/null +++ b/word-chain/LICENSE @@ -0,0 +1,30 @@ +Copyright Author name here (c) 2016 + +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Author name here nor the names of other + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/word-chain/Setup.hs b/word-chain/Setup.hs new file mode 100644 index 0000000..9a994af --- /dev/null +++ b/word-chain/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/word-chain/app/Main.hs b/word-chain/app/Main.hs new file mode 100644 index 0000000..446b565 --- /dev/null +++ b/word-chain/app/Main.hs @@ -0,0 +1,6 @@ +module Main where + +import WordChain + +main :: IO () +main = return () diff --git a/word-chain/dist/build/Lib.dyn_hi b/word-chain/dist/build/Lib.dyn_hi new file mode 100644 index 0000000..3ddb55a Binary files /dev/null and b/word-chain/dist/build/Lib.dyn_hi differ diff --git a/word-chain/dist/build/Lib.dyn_o b/word-chain/dist/build/Lib.dyn_o new file mode 100644 index 0000000..7399255 Binary files /dev/null and b/word-chain/dist/build/Lib.dyn_o differ diff --git a/word-chain/dist/build/Lib.hi b/word-chain/dist/build/Lib.hi new file mode 100644 index 0000000..a8522dd Binary files /dev/null and b/word-chain/dist/build/Lib.hi differ diff --git a/word-chain/dist/build/Lib.o b/word-chain/dist/build/Lib.o new file mode 100644 index 0000000..d0c098b Binary files /dev/null and b/word-chain/dist/build/Lib.o differ diff --git a/word-chain/dist/build/autogen/Paths_word_chain.hs b/word-chain/dist/build/autogen/Paths_word_chain.hs new file mode 100644 index 0000000..c95be9e --- /dev/null +++ b/word-chain/dist/build/autogen/Paths_word_chain.hs @@ -0,0 +1,35 @@ +module Paths_word_chain ( + version, + getBinDir, getLibDir, getDataDir, getLibexecDir, + getDataFileName, getSysconfDir + ) where + +import qualified Control.Exception as Exception +import Data.Version (Version(..)) +import System.Environment (getEnv) +import Prelude + +catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a +catchIO = Exception.catch + +version :: Version +version = Version [0,1,0,0] [] +bindir, libdir, datadir, libexecdir, sysconfdir :: FilePath + +bindir = "/Users/jchae/.cabal/bin" +libdir = "/Users/jchae/.cabal/lib/x86_64-osx-ghc-7.10.3/word-chain-0.1.0.0-6kG3BpNGaQHCEewlzAhz9L" +datadir = "/Users/jchae/.cabal/share/x86_64-osx-ghc-7.10.3/word-chain-0.1.0.0" +libexecdir = "/Users/jchae/.cabal/libexec" +sysconfdir = "/Users/jchae/.cabal/etc" + +getBinDir, getLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath +getBinDir = catchIO (getEnv "word_chain_bindir") (\_ -> return bindir) +getLibDir = catchIO (getEnv "word_chain_libdir") (\_ -> return libdir) +getDataDir = catchIO (getEnv "word_chain_datadir") (\_ -> return datadir) +getLibexecDir = catchIO (getEnv "word_chain_libexecdir") (\_ -> return libexecdir) +getSysconfDir = catchIO (getEnv "word_chain_sysconfdir") (\_ -> return sysconfdir) + +getDataFileName :: FilePath -> IO FilePath +getDataFileName name = do + dir <- getDataDir + return (dir ++ "/" ++ name) diff --git a/word-chain/dist/build/autogen/cabal_macros.h b/word-chain/dist/build/autogen/cabal_macros.h new file mode 100644 index 0000000..3068bab --- /dev/null +++ b/word-chain/dist/build/autogen/cabal_macros.h @@ -0,0 +1,60 @@ +/* DO NOT EDIT: This file is automatically generated by Cabal */ + +/* package base-4.8.2.0 */ +#define VERSION_base "4.8.2.0" +#define MIN_VERSION_base(major1,major2,minor) (\ + (major1) < 4 || \ + (major1) == 4 && (major2) < 8 || \ + (major1) == 4 && (major2) == 8 && (minor) <= 2) + +/* tool gcc-4.2.1 */ +#define TOOL_VERSION_gcc "4.2.1" +#define MIN_TOOL_VERSION_gcc(major1,major2,minor) (\ + (major1) < 4 || \ + (major1) == 4 && (major2) < 2 || \ + (major1) == 4 && (major2) == 2 && (minor) <= 1) + +/* tool ghc-7.10.3 */ +#define TOOL_VERSION_ghc "7.10.3" +#define MIN_TOOL_VERSION_ghc(major1,major2,minor) (\ + (major1) < 7 || \ + (major1) == 7 && (major2) < 10 || \ + (major1) == 7 && (major2) == 10 && (minor) <= 3) + +/* tool ghc-pkg-7.10.3 */ +#define TOOL_VERSION_ghc_pkg "7.10.3" +#define MIN_TOOL_VERSION_ghc_pkg(major1,major2,minor) (\ + (major1) < 7 || \ + (major1) == 7 && (major2) < 10 || \ + (major1) == 7 && (major2) == 10 && (minor) <= 3) + +/* tool haddock-2.16.1 */ +#define TOOL_VERSION_haddock "2.16.1" +#define MIN_TOOL_VERSION_haddock(major1,major2,minor) (\ + (major1) < 2 || \ + (major1) == 2 && (major2) < 16 || \ + (major1) == 2 && (major2) == 16 && (minor) <= 1) + +/* tool hpc-0.67 */ +#define TOOL_VERSION_hpc "0.67" +#define MIN_TOOL_VERSION_hpc(major1,major2,minor) (\ + (major1) < 0 || \ + (major1) == 0 && (major2) < 67 || \ + (major1) == 0 && (major2) == 67 && (minor) <= 0) + +/* tool hsc2hs-0.67 */ +#define TOOL_VERSION_hsc2hs "0.67" +#define MIN_TOOL_VERSION_hsc2hs(major1,major2,minor) (\ + (major1) < 0 || \ + (major1) == 0 && (major2) < 67 || \ + (major1) == 0 && (major2) == 67 && (minor) <= 0) + +/* tool pkg-config-0.29.1 */ +#define TOOL_VERSION_pkg_config "0.29.1" +#define MIN_TOOL_VERSION_pkg_config(major1,major2,minor) (\ + (major1) < 0 || \ + (major1) == 0 && (major2) < 29 || \ + (major1) == 0 && (major2) == 29 && (minor) <= 1) + +#define CURRENT_PACKAGE_KEY "wordc_6kG3BpNGaQHCEewlzAhz9L" + diff --git a/word-chain/dist/build/libHSword-chain-0.1.0.0-6kG3BpNGaQHCEewlzAhz9L-ghc7.10.3.dylib b/word-chain/dist/build/libHSword-chain-0.1.0.0-6kG3BpNGaQHCEewlzAhz9L-ghc7.10.3.dylib new file mode 100755 index 0000000..54e54e4 Binary files /dev/null and b/word-chain/dist/build/libHSword-chain-0.1.0.0-6kG3BpNGaQHCEewlzAhz9L-ghc7.10.3.dylib differ diff --git a/word-chain/dist/build/libHSword-chain-0.1.0.0-6kG3BpNGaQHCEewlzAhz9L.a b/word-chain/dist/build/libHSword-chain-0.1.0.0-6kG3BpNGaQHCEewlzAhz9L.a new file mode 100644 index 0000000..868b103 Binary files /dev/null and b/word-chain/dist/build/libHSword-chain-0.1.0.0-6kG3BpNGaQHCEewlzAhz9L.a differ diff --git a/word-chain/dist/build/word-chain-exe/word-chain-exe b/word-chain/dist/build/word-chain-exe/word-chain-exe new file mode 100755 index 0000000..78449f7 Binary files /dev/null and b/word-chain/dist/build/word-chain-exe/word-chain-exe differ diff --git a/word-chain/dist/build/word-chain-exe/word-chain-exe-tmp/Main.hi b/word-chain/dist/build/word-chain-exe/word-chain-exe-tmp/Main.hi new file mode 100644 index 0000000..b1052aa Binary files /dev/null and b/word-chain/dist/build/word-chain-exe/word-chain-exe-tmp/Main.hi differ diff --git a/word-chain/dist/build/word-chain-exe/word-chain-exe-tmp/Main.o b/word-chain/dist/build/word-chain-exe/word-chain-exe-tmp/Main.o new file mode 100644 index 0000000..d2156ab Binary files /dev/null and b/word-chain/dist/build/word-chain-exe/word-chain-exe-tmp/Main.o differ diff --git a/word-chain/dist/package.conf.inplace/package.cache b/word-chain/dist/package.conf.inplace/package.cache new file mode 100644 index 0000000..461067a Binary files /dev/null and b/word-chain/dist/package.conf.inplace/package.cache differ diff --git a/word-chain/dist/package.conf.inplace/word-chain-0.1.0.0-inplace.conf b/word-chain/dist/package.conf.inplace/word-chain-0.1.0.0-inplace.conf new file mode 100644 index 0000000..50a8bbe --- /dev/null +++ b/word-chain/dist/package.conf.inplace/word-chain-0.1.0.0-inplace.conf @@ -0,0 +1,25 @@ +name: word-chain +version: 0.1.0.0 +id: word-chain-0.1.0.0-inplace +key: wordc_6kG3BpNGaQHCEewlzAhz9L +license: BSD3 +copyright: 2016 Author name here +maintainer: example@example.com +homepage: https://github.com/githubuser/word-chain#readme +synopsis: Initial project template from stack +description: + Please see README.md +category: Web +author: Author name here +exposed: True +exposed-modules: + Lib +trusted: False +import-dirs: /Users/jchae/projects/katas/word-chain/dist/build +library-dirs: /Users/jchae/projects/katas/word-chain/dist/build +data-dir: /Users/jchae/projects/katas/word-chain +hs-libraries: HSword-chain-0.1.0.0-6kG3BpNGaQHCEewlzAhz9L +depends: + base-4.8.2.0-bfcc6de9ee2962ae54db40ece3022dc5 +haddock-interfaces: /Users/jchae/projects/katas/word-chain/dist/doc/html/word-chain/word-chain.haddock +haddock-html: /Users/jchae/projects/katas/word-chain/dist/doc/html/word-chain diff --git a/word-chain/dist/setup-config b/word-chain/dist/setup-config new file mode 100644 index 0000000..8fb0a03 Binary files /dev/null and b/word-chain/dist/setup-config differ diff --git a/word-chain/dist/setup/setup.hs b/word-chain/dist/setup/setup.hs new file mode 100644 index 0000000..2f04dee --- /dev/null +++ b/word-chain/dist/setup/setup.hs @@ -0,0 +1 @@ +import Distribution.Simple; main = defaultMain diff --git a/word-chain/dist/setup/setup.version b/word-chain/dist/setup/setup.version new file mode 100644 index 0000000..fe3a486 --- /dev/null +++ b/word-chain/dist/setup/setup.version @@ -0,0 +1 @@ +Version {versionBranch = [1,22,5,0], versionTags = []} diff --git a/word-chain/src/WordChain.hs b/word-chain/src/WordChain.hs new file mode 100644 index 0000000..75944dc --- /dev/null +++ b/word-chain/src/WordChain.hs @@ -0,0 +1,48 @@ +module WordChain + ( shortestPath + , isNeighbor + , neighbors + ) where + +import System.Environment + +data WordTree word = Node word [WordTree word] deriving (Show) + +type WordPath = [String] + +advance :: [String] -> [WordPath] -> [WordPath] +advance words [] = [] +advance words paths = let iteration = concat + $ map (generateChildPaths) paths + generateChildPaths as = map (:as) + $ filter (`notElem` as) + $ neighbors words (head as) + in iteration ++ (advance words iteration) + +dictionary = "/usr/share/dict/words" + +search start term words = take 1 $ filter ((== term) . head) $advance words [[start]] + +shortestPath :: String -> String -> Either String [String] +shortestPath start end | start == end = Right [start] + | length start /= length end = Left "length mismatch" + | otherwise = error "Not implemented" + +readDictionary :: IO String +readDictionary = readFile dictionary + +allTheWords :: IO [String] +allTheWords = fmap (lines) readDictionary + +isNeighbor :: String -> String -> Bool +isNeighbor a b = distance == 1 + where distance = foldl (\acc (a, b) -> if a /= b then acc + 1 else acc) 0 $ zip a b + +neighbors :: [String] -> String -> [String] +neighbors dict word = filter (isNeighbor word) + $ filter ((length word ==) . length) dict + +buildTree :: [String] -> String -> WordTree String +buildTree dict word = Node word myNeighborTrees + where myNeighbors = neighbors dict word + myNeighborTrees = map (buildTree dict) myNeighbors diff --git a/word-chain/stack.yaml b/word-chain/stack.yaml new file mode 100644 index 0000000..a375568 --- /dev/null +++ b/word-chain/stack.yaml @@ -0,0 +1,35 @@ +# This file was automatically generated by stack init +# For more information, see: http://docs.haskellstack.org/en/stable/yaml_configuration/ + +# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2) +resolver: lts-7.4 + +# Local packages, usually specified by relative directory name +packages: +- '.' +# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3) +extra-deps: [] + +# Override default flag values for local packages and extra-deps +flags: {} + +# Extra package databases containing global packages +extra-package-dbs: [] + +# Control whether we use the GHC we find on the path +# system-ghc: true + +# Require a specific version of stack, using version ranges +# require-stack-version: -any # Default +# require-stack-version: >= 1.0.0 + +# Override the architecture used by stack, especially useful on Windows +# arch: i386 +# arch: x86_64 + +# Extra directories used by stack for building +# extra-include-dirs: [/path/to/dir] +# extra-lib-dirs: [/path/to/dir] + +# Allow a newer minor version of GHC than the snapshot specifies +# compiler-check: newer-minor diff --git a/word-chain/test/Spec.hs b/word-chain/test/Spec.hs new file mode 100644 index 0000000..fc9f22c --- /dev/null +++ b/word-chain/test/Spec.hs @@ -0,0 +1,36 @@ +import Test.Hspec (Spec, describe, it, shouldBe, context) +import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith) + +import WordChain + +main :: IO () +main = hspecWith defaultConfig specs + +specs :: Spec +specs = describe "word chain" $ do + + context "shortestPath" $ do + describe "when the start and the end word are the same" $ do + it "returns that word" $ + shortestPath "test" "test" `shouldBe` Right ["test"] + + describe "when the start and the end word are different lengths" $ do + it "fails with a message that strings of different lengths cannot produce a valid word chain" $ + shortestPath "test" "failme" `shouldBe` Left "length mismatch" + + describe "when there is a one character difference between the words" $ do + it "returns a list containing the two words" $ + shortestPath "bat" "mat" `shouldBe` Right ["bat", "mat"] + + context "isNeighbor" $ do + describe "given two words" $ do + it "is true when words have one letter difference" $ + isNeighbor "bat" "mat" `shouldBe` True + + context "neighbors" $ do + describe "given a dictionary and a word" $ do + it "returns an empty list when there are no neighbors in the dictionary" $ + neighbors ["matt"] "mat" `shouldBe` [] + + it "returns a list with all neighbors" $ + neighbors ["bat", "cat", "boat", "hot"] "bot" `shouldBe` ["bat", "hot"] diff --git a/word-chain/word-chain.cabal b/word-chain/word-chain.cabal new file mode 100644 index 0000000..46b9bac --- /dev/null +++ b/word-chain/word-chain.cabal @@ -0,0 +1,42 @@ +name: word-chain +version: 0.1.0.0 +synopsis: Initial project template from stack +description: Please see README.md +homepage: https://github.com/githubuser/word-chain#readme +license: BSD3 +license-file: LICENSE +author: Author name here +maintainer: example@example.com +copyright: 2016 Author name here +category: Web +build-type: Simple +-- extra-source-files: +cabal-version: >=1.10 + +library + hs-source-dirs: src + exposed-modules: WordChain + build-depends: base >= 4.7 && < 5 + default-language: Haskell2010 + +executable word-chain-exe + hs-source-dirs: app + main-is: Main.hs + ghc-options: -threaded -rtsopts -with-rtsopts=-N + build-depends: base + , word-chain + default-language: Haskell2010 + +test-suite word-chain-test + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: Spec.hs + build-depends: base + , word-chain + , hspec + ghc-options: -threaded -rtsopts -with-rtsopts=-N + default-language: Haskell2010 + +source-repository head + type: git + location: https://github.com/githubuser/word-chain