Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
U.Util.Text
Synopsis
- stripMargin :: Text -> Text
- unsafeToInt :: HasCallStack => Text -> Int
Documentation
stripMargin :: Text -> Text Source #
remove however many spaces prefix all of the lines of the input e.g. stripMargin [here| def foo: blah blah |] == [here| def foo: blah blah |]T
unsafeToInt :: HasCallStack => Text -> Int Source #
>>>
unsafeToInt "123"
123