RosettaCodeData/Task/Binary_strings/Haskell/binary_strings.hs
Ingy döt Net 80737d5a6a new tasks
2013-04-09 00:46:50 -07:00

9 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