How to find `toStrict :: Text & # 8594; Text` with hayoo / hoogle

I tried to find a toStrict function like Data.Text.Lazy.Text -> Data.Text.Text , but I did not know that) that it was called, and b) exactly what was called the Lazy module.

A Hayoo search for Text -> Text yields many results. Is there a way to search for a signature, for example *Lazy*Text -> Text ?

A search for Data.Text.Lazy.Text -> Text does not Data.Text.Lazy.Text -> Text any results.

How can I find a function like (lazy) Text -> (strict) Text using hayoo, hoogle or ...?

+6
source share
3 answers

I do not think Hayoo or Hoogle support this syntax. The best thing would be to look for the appropriate module instead and look at the list of functions that it provides.

+1
source

Search seems to work correctly in FP Haskell Center . There may not have been any text documentation available in the Hoogle database before.

0
source

If you type β€œstrict text” in Hayoo, the first result will be fromStrict , and the second result will be toStrict .

0
source

Source: https://habr.com/ru/post/953024/


All Articles