1 {-# OPTIONS_GHC -XNoImplicitPrelude #-}
2 -----------------------------------------------------------------------------
4 -- Module : Data.String
5 -- Copyright : (c) The University of Glasgow 2007
6 -- License : BSD-style (see the file libraries/base/LICENSE)
8 -- Maintainer : libraries@haskell.org
9 -- Stability : experimental
10 -- Portability : portable
12 -- The @String@ type and associated operations.
14 -----------------------------------------------------------------------------
20 -- * Functions on strings
27 #ifdef __GLASGOW_HASKELL__
31 import Data.List (lines, words, unlines, unwords)
33 -- | Class for string-like datastructures; used by the overloaded string
34 -- extension (-foverloaded-strings in GHC).
35 class IsString a where
36 fromString :: String -> a
38 instance IsString [Char] where