I have a variable of ByteString
type. I want to see which package it belongs to. This could be useful for ByteString types because there are several different implementations in different packages.
For instance, I have following piece of code:
import qualified Data.ByteString.Lazy.Char8 as BSL
json :: String
json = "{\"document\":{\"name\":\"doc1\",\"content\":\"content1\"}}"
I want to get full package when I do ghci> :t BSL.pack json
. What I get is BSL.pack json :: ByteString
while I want something like BSL.pack json :: Data.ByteString.Lazy.Char8
. Is there any way to get this kind of information at the ghci prompt?