jfeltz / dash-haskell Goto Github PK
View Code? Open in Web Editor NEWdash docset builder for Haskell packages and cabal project dependencies
License: GNU Lesser General Public License v3.0
dash docset builder for Haskell packages and cabal project dependencies
License: GNU Lesser General Public License v3.0
Would it be hard to support ghc-7.10.x ?
Cheers
I'm getting the following build error when installing (including the dependent versions as well, maybe there was a breaking change somewhere?)
$ cabal install dash-haskell
Installed ghc-paths-0.1.0.9
Installed mmorph-1.0.4
Installed prelude-extras-0.4
Installed stm-2.4.3
Installed mtl-2.1.3.1
Installed primitive-0.5.4.0
Installed ansi-terminal-0.6.1.1
Installed tagged-0.7.2
Installed transformers-base-0.4.3
Installed random-1.1
Installed exceptions-0.6.1
Installed ansi-wl-pprint-0.6.7.1
Installed transformers-compat-0.3.3.4
Installed monad-control-0.3.3.0
Installed pipes-4.1.3
Installed MonadRandom-0.3
Installed distributive-0.4.4
Installed optparse-applicative-0.11.0.1
Installed haddock-library-1.1.1
Installed haddock-api-2.15.0
Installed vector-0.10.12.1
Installed text-1.2.0.0
Installed hashable-1.2.2.0
Installed nats-0.2
Installed blaze-builder-0.3.3.4
Installed blaze-textual-0.2.0.9
Installed scientific-0.3.3.1
Installed parsec-3.1.7
Installed tagsoup-0.13.3
Installed unordered-containers-0.2.5.1
Installed semigroups-0.15.3
Installed void-0.6.1
Installed contravariant-1.2
Installed direct-sqlite-2.3.14
Installed comonad-4.2.2
Installed system-filepath-0.4.12
Installed semigroupoids-4.2
Installed system-fileio-0.3.14
Installed profunctors-4.2.0.1
Installed bifunctors-4.1.1.1
Installed free-4.9
Installed either-4.3.1
Installed attoparsec-0.12.1.2
Installed sqlite-simple-0.4.8.0
Failed to install dash-haskell-1.0.0.1
Configuring dash-haskell-1.0.0.1...
Building dash-haskell-1.0.0.1...
Preprocessing executable 'dash-haskell' for dash-haskell-1.0.0.1...
[ 1 of 17] Compiling Package.Conf ( src/Package/Conf.hs, dist/build/dash-haskell/dash-haskell-tmp/Package/Conf.o )
[ 2 of 17] Compiling Data.String.Indent ( src/Data/String/Indent.hs, dist/build/dash-haskell/dash-haskell-tmp/Data/String/Indent.o )
[ 3 of 17] Compiling Data.String.Util ( src/Data/String/Util.hs, dist/build/dash-haskell/dash-haskell-tmp/Data/String/Util.o )
[ 4 of 17] Compiling Options.DbProvider ( src/Options/DbProvider.hs, dist/build/dash-haskell/dash-haskell-tmp/Options/DbProvider.o )
src/Options/DbProvider.hs:40:17:
Couldn't match type ‘Either ParseError b0’
with ‘Control.Monad.Trans.Reader.ReaderT
String
(transformers-compat-0.3.3.4:Control.Monad.Trans.Except.Except
ParseError)
(Maybe [Char])’
Expected type: ParseError
-> Control.Monad.Trans.Reader.ReaderT
String
(transformers-compat-0.3.3.4:Control.Monad.Trans.Except.Except
ParseError)
(Maybe [Char])
Actual type: ParseError -> Either ParseError b0
In the first argument of ‘(.)’, namely ‘Left’
In the second argument of ‘(.)’, namely ‘Left . ErrorMsg’
src/Options/DbProvider.hs:59:21:
Couldn't match expected type ‘Control.Monad.Trans.Reader.ReaderT
String
(transformers-compat-0.3.3.4:Control.Monad.Trans.Except.Except
ParseError)
(Maybe String -> ReadM DbProvider)’
with actual type ‘Either ParseError b2’
In the first argument of ‘maybe’, namely
‘(Left . ErrorMsg $ "invalid db provider")’
In the second argument of ‘($)’, namely
‘maybe (Left . ErrorMsg $ "invalid db provider") Right f’
In the expression:
ReadM $ maybe (Left . ErrorMsg $ "invalid db provider") Right f
src/Options/DbProvider.hs:59:62:
Couldn't match type ‘Either a0 (Maybe String -> ReadM DbProvider)’
with ‘Control.Monad.Trans.Reader.ReaderT
String
(transformers-compat-0.3.3.4:Control.Monad.Trans.Except.Except
ParseError)
(Maybe String -> ReadM DbProvider)’
Expected type: (Maybe String -> ReadM DbProvider)
-> Control.Monad.Trans.Reader.ReaderT
String
(transformers-compat-0.3.3.4:Control.Monad.Trans.Except.Except
ParseError)
(Maybe String -> ReadM DbProvider)
Actual type: (Maybe String -> ReadM DbProvider)
-> Either a0 (Maybe String -> ReadM DbProvider)
In the second argument of ‘maybe’, namely ‘Right’
In the second argument of ‘($)’, namely
‘maybe (Left . ErrorMsg $ "invalid db provider") Right f’
src/Options/DbProvider.hs:69:24:
Couldn't match type ‘Either ParseError b1’
with ‘Control.Monad.Trans.Reader.ReaderT
String
(transformers-compat-0.3.3.4:Control.Monad.Trans.Except.Except
ParseError)
DbProvider’
Expected type: ParseError
-> Control.Monad.Trans.Reader.ReaderT
String
(transformers-compat-0.3.3.4:Control.Monad.Trans.Except.Except
ParseError)
DbProvider
Actual type: ParseError -> Either ParseError b1
In the first argument of ‘(.)’, namely ‘Left’
In the second argument of ‘(.)’, namely ‘Left . ErrorMsg’
Updating documentation index /Users/pascal/.cabal/share/doc/index.html
cabal: Error: some packages failed to install:
dash-haskell-1.0.0.1 failed during the building phase. The exception was:
ExitFailure 1
cabal install fails with the following (cabal 1.24):
[ 1 of 15] Compiling Data.Maybe.Util ( src/Data/Maybe/Util.hs, dist/build/dash-haskell/dash-haskell-tmp/Data/Maybe/Util.o )
[ 2 of 15] Compiling Db ( src/Db.hs, dist/build/dash-haskell/dash-haskell-tmp/Db.o )
[ 3 of 15] Compiling Options.Db ( src/Options/Db.hs, dist/build/dash-haskell/dash-haskell-tmp/Options/Db.o )
[ 4 of 15] Compiling FilePath ( src/FilePath.hs, dist/build/dash-haskell/dash-haskell-tmp/FilePath.o )
[ 5 of 15] Compiling Data.String.Util ( src/Data/String/Util.hs, dist/build/dash-haskell/dash-haskell-tmp/Data/String/Util.o )
[ 6 of 15] Compiling PackageConf ( src/PackageConf.hs, dist/build/dash-haskell/dash-haskell-tmp/PackageConf.o )
[ 7 of 15] Compiling Options.Documentation ( src/Options/Documentation.hs, dist/build/dash-haskell/dash-haskell-tmp/Options/Documentation.o )
[ 8 of 15] Compiling Control.Monad.M ( src/Control/Monad/M.hs, dist/build/dash-haskell/dash-haskell-tmp/Control/Monad/M.o )
[ 9 of 15] Compiling Options.Cabal ( src/Options/Cabal.hs, dist/build/dash-haskell/dash-haskell-tmp/Options/Cabal.o )
[10 of 15] Compiling Haddock.Artifact ( src/Haddock/Artifact.hs, dist/build/dash-haskell/dash-haskell-tmp/Haddock/Artifact.o )
[11 of 15] Compiling Haddock.Sqlite ( src/Haddock/Sqlite.hs, dist/build/dash-haskell/dash-haskell-tmp/Haddock/Sqlite.o )
[12 of 15] Compiling Pipe.FileSystem ( src/Pipe/FileSystem.hs, dist/build/dash-haskell/dash-haskell-tmp/Pipe/FileSystem.o )
[13 of 15] Compiling Options ( src/Options.hs, dist/build/dash-haskell/dash-haskell-tmp/Options.o )
[14 of 15] Compiling Pipe.Conf ( src/Pipe/Conf.hs, dist/build/dash-haskell/dash-haskell-tmp/Pipe/Conf.o )
[15 of 15] Compiling Main ( src/Main.hs, dist/build/dash-haskell/dash-haskell-tmp/Main.o )
src/Main.hs:49:6:
Not in scope: ‘<>’
Perhaps you meant one of these:
‘<$>’ (imported from Options.Applicative),
‘*>’ (imported from Options.Applicative),
‘<$’ (imported from Options.Applicative)
src/Main.hs:50:6:
Not in scope: ‘<>’
Perhaps you meant one of these:
‘<$>’ (imported from Options.Applicative),
‘*>’ (imported from Options.Applicative),
‘<$’ (imported from Options.Applicative)
cabal: Leaving directory '.'
cabal: Error: some packages failed to install:
dash-haskell-1.1.0.2 failed during the building phase. The exception was:
ExitFailure 1
~/Downloads/cabal install 108.09s user 8.79s system 173% cpu 1:07.27 total
Hi, would this convert a haddock database such as https://www.stackage.org/lts-3.3/db.hoo etc to Dash ?
Or be easy to extend ?
Thanks
Hi, I'm hitting several Could not find module
errors when installing with Cabal (see below). When I clone the project and make the project from source, then things work fine.
Really useful project by the way! Its been a major improvement over SublimeHaskell for looking up type signatures and documentation.
maximilians-mbp:~ Max$ cabal install dash-haskell
Resolving dependencies...
Configuring dash-haskell-1.0.0.0...
Building dash-haskell-1.0.0.0...
Failed to install dash-haskell-1.0.0.0
Build log ( /Users/Max/.cabal/logs/dash-haskell-1.0.0.0.log ):
Configuring dash-haskell-1.0.0.0...
Building dash-haskell-1.0.0.0...
Preprocessing executable 'dash-haskell' for dash-haskell-1.0.0.0...
src/Main.hs:2:18:
Could not find module ‘Control.Monad.M’
Perhaps you meant
Control.Monad (from base)
Control.Monad (needs flag -package haskell2010-1.1.2.0)
Control.Monad.STM (needs flag -package stm-2.4.3)
Use -v to see a list of the files searched for.
src/Main.hs:4:18:
Could not find module ‘Pipes.FileSystem’
Use -v to see a list of the files searched for.
src/Main.hs:5:18:
Could not find module ‘Pipes.Conf’
Perhaps you meant Pipes.Core (from pipes-4.1.2)
Use -v to see a list of the files searched for.
src/Main.hs:6:18:
Could not find module ‘Pipes.Db’
Use -v to see a list of the files searched for.
src/Main.hs:8:18:
Could not find module ‘Options.Documentation’
Use -v to see a list of the files searched for.
src/Main.hs:9:18:
Could not find module ‘Options’
Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
dash-haskell-1.0.0.0 failed during the building phase. The exception was:
ExitFailure 1
Cabal version:
$ cabal --version
cabal-install version 1.20.0.3
using version 1.20.0.1 of the Cabal library
GHC version:
ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.3
OS: OS X 10.9.5
I get this when doing a cabal install
cabal: InstallPlan: internal error: configured package depends on a non-library package
I believe the problem is the haddock dependency.
When I try to install from hackage or do clean build after cloning, I get this:
~/src/dash-haskell ➜ cabal-install -j --only-dependencies
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: dash-haskell-1.0.0.3 (user goal)
trying: transformers-0.3.0.0/installed-7df... (dependency of
dash-haskell-1.0.0.3)
trying: optparse-applicative-0.11.0.1 (dependency of dash-haskell-1.0.0.3)
trying: transformers-compat-0.3.3.4 (dependency of
optparse-applicative-0.11.0.1)
trying: transformers-compat-0.3.3.4:-two
rejecting: transformers-compat-0.3.3.4:-three (conflict:
transformers==0.3.0.0/installed-7df..., transformers-compat-0.3.3.4:three =>
transformers>=0.4.1 && <0.5)
rejecting: transformers-compat-0.3.3.4:+three (manual flag can only be changed
explicitly)
Dependency tree exhaustively searched.
Hi there,
I'm trying to use dash-haskell with stack:
$ stack exec -- dash-haskell -c foo.cabal --db /Users/bts/.stack/snapshots/x86_64-osx/nightly-2015-07-15/7.10.1/pkgdb
using package db stack:
> ghc distribution (global db)
> system user
> db directory: /Users/bts/.stack/snapshots/x86_64-osx/nightly-2015-07-15/7.10.1/pkgdb
dash-haskell: ./cabal.sandbox.config: openFile: does not exist (No such file or directory)
Does dash-haskell currently require the use of sandboxes to function, or is there a command line option I should supply to prevent the attempt to read ./cabal.sandbox.config
?
Thanks!
example case: dash-haskell 1.1.0.1, fast-logger-2.4.0
parsing cabal file: fast-logger.cabal
warning: removed the following packages from processing due version range overlap:
Dependency (PackageName {unPackageName = "base"}) (IntersectVersionRanges (UnionVersionRanges (ThisVersion (Version {versionBranch = [4,4], versionTags = []})) (LaterVersion (Version {versionBranch = [4,4], versionTags = []}))) (EarlierVersion (Version {versionBranch = [5], versionTags = []})))
Dependency (PackageName {unPackageName = "bytestring"}) AnyVersion
Dependency (PackageName {unPackageName = "directory"}) AnyVersion
processing: bytestring ..
...
processing: base ..
...
I tried running dash-haskell on Mac OS X. I built the latest from Github, but when I try to run it on dash-haskell itself, I get this:
janne ~/dev/dash-haskell $ ./.cabal-sandbox/bin/dash-haskell -c dash-haskell.cabal -o docsets
db provider:
lookup strategy: cabal sandbox db index
cmd: cabal
args: sandbox hc-pkg list
fatal error:
The following packages were not found in searched package db's:
ghc
Please be sure to provide exact package versions.
I built my sandbox with --enable-documentation
.
My Cabal version is as follows:
janne ~/dev/dash-haskell $ cabal --version
cabal-install version 1.20.0.3
using version 1.20.0.1 of the Cabal library
The output of cabal sandbox hc-pkg list
is:
janne ~/dev/dash-haskell $ cabal sandbox hc-pkg list|grep ghc
/Applications/ghc-7.8.3.app/Contents/lib/ghc-7.8.3/package.conf.d:
(ghc-7.8.3)
ghc-prim-0.3.1.0
/Users/janne/dev/dash-haskell/.cabal-sandbox/x86_64-osx-ghc-7.8.3-packages.conf.d:
ghc-paths-0.1.0.9
My GHC 7.8.3 is from http://ghcformacosx.github.io/.
From the README:
(defun activate-package-docsets (root)
"activate all docsets in a given directory"
(progn
; force docsets in root to be recognized as installed docsets
(setq helm-dash-docsets-path root)
; append those to the docset list
(setq
helm-dash-common-docsets
(append (helm-dash-installed-docsets) helm-dash-common-docsets ))
))
Unfortunately it does not seem to work for me as it creates :
helm-dash-common-docsets is a variable defined in `helm-dash.el'.
Its value is
("Diff-0" "HUnit-1" "aeson-0" "ansi-wl-pprint-0" "attoparsec-0" "base-4" "base16-bytestring-0" "bytestring-0" "case-insensitive-1" "containers-0" "cryptohash-0" "directory-1" "either-4" "hashable-1" "hslogger-1" "hslua-0" "hspec-1" "http-conduit-2" "http-types-0" "mtl-2" "optparse-applicative-0" "parsec-3" "process-1" "regex-pcre-builtin-0" "scientific-0" "split-0" "stm-2" "temporary-1" "text-1" "time-1" "transformers-0" "unix-2" "unordered-containers-0" "vector-0" "yaml-0")
While the docsets dir looks like this
@arch-docker ~/.docsets/cabal > la
total 148K
drwxr-xr-x 37 vagrant users 4.0K Sep 12 17:30 .
drwxr-xr-x 3 vagrant users 4.0K Sep 12 17:30 ..
drwxr-xr-x 3 vagrant users 4.0K Sep 11 06:44 aeson-0.7.0.6.docset
drwxr-xr-x 3 vagrant users 4.0K Sep 11 06:44 ansi-wl-pprint-0.6.7.1.docset
drwxr-xr-x 3 vagrant users 4.0K Sep 11 06:44 attoparsec-0.11.3.4.docset
drwxr-xr-x 3 vagrant users 4.0K Sep 11 06:44 base16-bytestring-0.1.1.6.docset
drwxr-xr-x 3 vagrant users 4.0K Sep 11 06:44 base-4.7.0.1.docset
Thanks for your help.
version bounds provided by the cabal file, i.e. -c foo.cabal
should constrain and error check package results from the db(s)
I get errors about missing Ghc.PackageKey when compiling for ghc8. It seems dash-haskell isn't compatible with ghc8.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.