6

I was trying to find the toStrict function of type Data.Text.Lazy.Text -> Data.Text.Text, but I didn't know a) what it was called, and b) exactly what the Lazy module name was.

Searching Hayoo for Text -> Text brings up lots of results. Is there a way to search on a signature like *Lazy*Text -> Text?

Searching for Data.Text.Lazy.Text -> Text doesn't produce any results.

How should I go about finding a function of type (lazy) Text -> (strict) Text using hayoo, hoogle or ...?

ErikR
  • 51,541
  • 9
  • 73
  • 124

3 Answers3

1

I don't think Hayoo nor Hoogle support that syntax. The best bet would be to search for the relevant module(s) instead, and go through the list of functions it provides.

Jani Hartikainen
  • 42,745
  • 10
  • 68
  • 86
0

The search seems to work correctly on FP Haskell Center. Perhaps the Hoogle database you tried previously didn't have the text documentation available.

Michael Snoyman
  • 31,100
  • 3
  • 48
  • 77
0

If you type "strict text" into Hayoo the first result is fromStrict and the second result is toStrict.

Tom Ellis
  • 9,224
  • 1
  • 29
  • 54