1 {-# LANGUAGE CPP, NoImplicitPrelude, FlexibleInstances #-}
3 -----------------------------------------------------------------------------
5 -- Module : Data.String
6 -- Copyright : (c) The University of Glasgow 2007
7 -- License : BSD-style (see the file libraries/base/LICENSE)
9 -- Maintainer : libraries@haskell.org
10 -- Stability : experimental
11 -- Portability : portable
13 -- The @String@ type and associated operations.
15 -----------------------------------------------------------------------------
21 -- * Functions on strings
28 #ifdef __GLASGOW_HASKELL__
32 import Data.List (lines, words, unlines, unwords)
34 -- | Class for string-like datastructures; used by the overloaded string
35 -- extension (-foverloaded-strings in GHC).
36 class IsString a where
37 fromString :: String -> a
40 instance IsString [Char] where