{-# LANGUAGE Trustworthy #-}{-# LANGUAGE CPP, NoImplicitPrelude, FlexibleInstances #-}------------------------------------------------------------------------------- |-- Module : Data.String-- Copyright : (c) The University of Glasgow 2007-- License : BSD-style (see the file libraries/base/LICENSE)---- Maintainer : libraries@haskell.org-- Stability : experimental-- Portability : portable---- The @String@ type and associated operations.-------------------------------------------------------------------------------moduleData.String(String,IsString(..)-- * Functions on strings,lines,words,unlines,unwords)where#ifdef __GLASGOW_HASKELL__importGHC.Base#endifimportData.List(lines,words,unlines,unwords)-- | Class for string-like datastructures; used by the overloaded string-- extension (-foverloaded-strings in GHC).classIsStringawherefromString::String->a#ifndef __NHC__instanceIsString[Char]wherefromStringxs=xs#endif