Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to find `toStrict :: Text -> Text` using hayoo / hoogle

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 ...?

like image 663
ErikR Avatar asked Sep 03 '13 03:09

ErikR


1 Answers

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.

like image 156
Jani Hartikainen Avatar answered Nov 15 '22 07:11

Jani Hartikainen