RosettaCodeData/Task/Binary-strings/Haskell/binary-strings-1.hs

10 lines
306 B
Haskell

import Text.Regex
{- The above import is needed only for the last function.
It is used there purely for readability and conciseness -}
{- Assigning a string to a 'variable'.
We're being explicit about it just for show.
Haskell would be able to figure out the type
of "world" -}
string = "world" :: String