unison-prelude-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

U.Util.Text

Synopsis

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