Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't find any packages with that module on GHC8 with Haddock 2.17 #32

Open
NightRa opened this issue Oct 20, 2016 · 3 comments
Open

Comments

@NightRa
Copy link

NightRa commented Oct 20, 2016

haskell-docs is used in the intellij-haskell project (https://github.com/rikvdkleij/intellij-haskell).

The following issue occurs on GHC8 with Haddock 2.17.2.

$ haskell-docs take
Couldn't find any packages with that module.

haskell-docs works for some inputs, and it doesn't on others.

@NightRa NightRa changed the title Support Haddock 2.17 and GHC 8 Issues on GHC8 with Haddock 2.17 Oct 20, 2016
@NightRa NightRa changed the title Issues on GHC8 with Haddock 2.17 Couldn't find any packages with that module on GHC8 with Haddock 2.17 Oct 20, 2016
@ivan-m
Copy link
Owner

ivan-m commented Oct 26, 2016

Is this actually to do with GHC 8 and Haddock 2.17?

Are you looking for Data.List.take?

@ivan-m
Copy link
Owner

ivan-m commented Oct 26, 2016

I've just freshly re-built haskell-docs and this is what I get:

$ haskell-docs take
Package: containers-0.5.7.1
Module: Data.Sequence
take :: forall a. Int -> Seq a -> Seq a
*O(log(min(i,n-i)))*. The first `i` elements of a sequence.
 If `i` is negative, `take i s` yields the empty sequence.
 If the sequence contains fewer than `i` elements, the whole sequence
 is returned.
Package: bytestring-0.10.8.1
Module: Data.ByteString
take :: Int -> ByteString -> ByteString
*O(1)* take `n`, applied to a ByteString `xs`, returns the prefix
 of `xs` of length `n`, or `xs` itself if `n > length xs`.
Package: base
Module: GHC.List
take :: forall a. Int -> [a] -> [a]
take `n`, applied to a list `xs`, returns the prefix of `xs`
 of length `n`, or `xs` itself if `n > length xs`:
    take 5 "Hello World!" == "Hello"
    take 3 [1,2,3,4,5] == [1,2,3]
    take 3 [1,2] == [1,2]
    take 3 [] == []
    take (-1) [1,2] == []
    take 0 [1,2] == []

It is an instance of the more general Data.List.genericTake,
 in which `n` may be of any integral type.

@ivan-m
Copy link
Owner

ivan-m commented Aug 2, 2017

Is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants