RosettaCodeData/Task/Binary_strings/Haskell/binary_strings.hs

10 lines
306 B
Haskell
Raw Normal View History

2013-04-09 00:46:50 -07:00
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