Created
December 9, 2018 18:26
-
-
Save chowells79/1205d0075d93b3ca1577a909c0a1e4d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/hask$ cabal v2-repl --build-depends lens --build-depends megaparsec | |
Resolving dependencies... | |
Build profile: -w ghc-8.6.1 -O1 | |
In order, the following will be built (use -v for more details): | |
- fake-package-0 (lib) (first run) | |
Configuring library for fake-package-0.. | |
Preprocessing library for fake-package-0.. | |
Warning: No exposed modules | |
GHCi, version 8.6.1: http://www.haskell.org/ghc/ :? for help | |
Prelude> :load AoC0818.hs | |
<no location info>: error: can't find file: AoC0818.hs | |
Failed, no modules loaded. | |
Prelude> :cd ~/hask | |
Prelude> :load AoC0818.hs | |
[1 of 1] Compiling Main ( AoC0818.hs, interpreted ) | |
Ok, one module loaded. | |
Prelude> :browse Main | |
data main:Main.Tree = main:Main.Tree [main:Main.Tree] [Int] | |
main:Main.treeP :: Text.Megaparsec.Parsec () String main:Main.Tree | |
main:Main.metadata :: | |
Control.Lens.Type.Traversal' main:Main.Tree Int | |
main:Main.children :: | |
Control.Lens.Type.Traversal' main:Main.Tree main:Main.Tree | |
main:Main.leaf :: | |
Control.Lens.Type.Fold main:Main.Tree main:Main.Tree | |
main:Main.metachildren :: | |
Control.Lens.Type.Fold main:Main.Tree main:Main.Tree | |
main:Main.part1 :: main:Main.Tree -> Int | |
main:Main.part2 :: main:Main.Tree -> Int | |
main:Main.main :: IO () | |
Prelude> import Main | |
<interactive>:1:1: error: | |
attempting to use module ‘fake-package-0-inplace:Main’ (AoC0818.hs) which is not loaded | |
Prelude> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment