Skip to content

Instantly share code, notes, and snippets.

@tonymorris
Last active April 1, 2020 08:55
Show Gist options
  • Save tonymorris/5bcf69b1bdc9de2a6d4291d457abed30 to your computer and use it in GitHub Desktop.
Save tonymorris/5bcf69b1bdc9de2a6d4291d457abed30 to your computer and use it in GitHub Desktop.
% # this will break because of tagsoup/.ghci
% git clone https://github.com/ndmitchell/tagsoup/ && cd tagsoup && cabal new-repl
Cloning into 'tagsoup'...
remote: Enumerating objects: 41, done.
remote: Counting objects: 100% (41/41), done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 3860 (delta 17), reused 17 (delta 6), pack-reused 3819
Receiving objects: 100% (3860/3860), 1.37 MiB | 1.04 MiB/s, done.
Resolving deltas: 100% (2322/2322), done.
Resolving dependencies...
Build profile: -w ghc-8.6.5 -O1
In order, the following will be built (use -v for more details):
- tagsoup-0.14.8 (lib) (first run)
Configuring library for tagsoup-0.14.8..
Preprocessing library for tagsoup-0.14.8..
GHCi, version 8.6.5: http://www.haskell.org/ghc/ :? for help
<no location info>: error: module ‘Main’ cannot be found locally
Failed, no modules loaded.
<no location info>: error:
Could not load module ‘Text.HTML.TagSoup’
It is a member of the hidden package ‘tagsoup-0.14.8’.
Perhaps you need to add ‘tagsoup’ to the build-depends in your .cabal file.
It is a member of the hidden package ‘tagsoup-0.13.10’.
Perhaps you need to add ‘tagsoup’ to the build-depends in your .cabal file.
It is a member of the hidden package ‘tagsoup-0.13.10’.
Perhaps you need to add ‘tagsoup’ to the build-depends in your .cabal file.
<interactive>:9:23: error:
Not in scope: ‘System.Directory.copyFile’
No module named ‘System.Directory’ is imported.
<interactive>:1:2: error:
Variable not in scope: cmdUngenerate :: String -> IO String
Loaded GHCi configuration from /tmp/tagsoup/.ghci
[ 1 of 13] Compiling Text.HTML.TagSoup.Entity ( src/Text/HTML/TagSoup/Entity.hs, interpreted )
[ 2 of 13] Compiling Text.StringLike ( src/Text/StringLike.hs, interpreted )
[ 3 of 13] Compiling Text.HTML.TagSoup.Type ( src/Text/HTML/TagSoup/Type.hs, interpreted )
[ 4 of 13] Compiling Text.HTML.TagSoup.Match ( src/Text/HTML/TagSoup/Match.hs, interpreted )
[ 5 of 13] Compiling Text.HTML.TagSoup.Render ( src/Text/HTML/TagSoup/Render.hs, interpreted )
[ 6 of 13] Compiling Text.HTML.TagSoup.Options ( src/Text/HTML/TagSoup/Options.hs, interpreted )
[ 7 of 13] Compiling Text.HTML.TagSoup.Implementation ( src/Text/HTML/TagSoup/Implementation.hs, interpreted )
[ 8 of 13] Compiling Text.HTML.TagSoup.Specification ( src/Text/HTML/TagSoup/Specification.hs, interpreted )
[ 9 of 13] Compiling Text.HTML.TagSoup.Manual ( src/Text/HTML/TagSoup/Manual.hs, interpreted )
[10 of 13] Compiling Text.HTML.TagSoup.Generated ( src/Text/HTML/TagSoup/Generated.hs, interpreted )
[11 of 13] Compiling Text.HTML.TagSoup.Parser ( src/Text/HTML/TagSoup/Parser.hs, interpreted )
[12 of 13] Compiling Text.HTML.TagSoup ( src/Text/HTML/TagSoup.hs, interpreted )
[13 of 13] Compiling Text.HTML.TagSoup.Tree ( src/Text/HTML/TagSoup/Tree.hs, interpreted )
Ok, 13 modules loaded.
*Text.HTML.TagSoup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment