panda-2008.11.6: src/Panda/Helper/PreludeEnv.hs
{-# LANGUAGE NoImplicitPrelude #-}
module Panda.Helper.PreludeEnv (
module MPS
, module Prelude
, split
, gsub
, match
) where
import Prelude hiding ((.), (/), (^), id, span, readFile, writeFile)
import MPS hiding (base, col, sub, date, ls, match, gsub, split)
import qualified MPS as MPS
-- io for statehelper
b2u = from_utf8
u2b = to_utf8
split x y = MPS.split (x.u2b) (y.u2b) .map b2u
gsub x y z = MPS.gsub (x.u2b) (y.u2b) (z.u2b) .b2u
match x y = MPS.match (x.u2b) (y.u2b)