packages feed

haskell-dap-0.0.1.0: app/Haskell/DAP/GHCi/Utility.hs

module Haskell.DAP.GHCi.Utility where

  
-- |
--
_SPACES :: [Char]
_SPACES = [' ', '\n', '\t']


-- |
--
lstrip, rstrip, strip :: String -> String
lstrip = dropWhile (flip elem _SPACES)
rstrip = reverse . lstrip . reverse
strip  = lstrip . rstrip