haskell-docs icon indicating copy to clipboard operation
haskell-docs copied to clipboard

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

Open NightRa opened this issue 9 years ago • 3 comments

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 avatar Oct 20 '16 11:10 NightRa

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

Are you looking for Data.List.take?

ivan-m avatar Oct 26 '16 01:10 ivan-m

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 avatar Oct 26 '16 02:10 ivan-m

Is this still an issue?

ivan-m avatar Aug 02 '17 07:08 ivan-m