-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use MiniPrelude instead of Prelude in a number of places.
Using Prelude drags in the bloated Text.Read modules.
- Loading branch information
Showing
64 changed files
with
4,568 additions
and
4,629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module MHSPrelude(module Prelude) where | ||
import Prelude |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module Data.Void(module Data.Void) where | ||
import Prelude | ||
import Prelude(); import MiniPrelude | ||
|
||
data Void | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
module MiniPrelude( | ||
module Control.Applicative, | ||
module Control.Error, | ||
module Control.Monad, | ||
module Data.Bool, | ||
module Data.Char, | ||
module Data.Enum, | ||
module Data.Eq, | ||
module Data.Either, | ||
module Data.Function, | ||
module Data.Functor, | ||
module Data.Ord, | ||
module Data.Int, | ||
module Data.Integral, | ||
module Data.List, | ||
module Data.Maybe, | ||
module Data.Monoid, | ||
module Data.Num, | ||
module Data.Records, | ||
module Data.String, | ||
module Data.Tuple, | ||
module System.IO, | ||
module Text.Show, | ||
usingMhs, _wordSize, _isWindows, | ||
) where | ||
import Prelude() | ||
import Control.Applicative(Applicative(..)) | ||
import Control.Error | ||
import Control.Monad | ||
import Data.Bool | ||
import Data.Char | ||
import Data.Enum | ||
import Data.Eq | ||
import Data.Either | ||
import Data.Function | ||
import Data.Functor | ||
import Data.Ord | ||
import Data.Int | ||
import Data.Integral | ||
import Data.List([](..), map, (++), filter, head, last, tail, init, null, length, (!!), | ||
reverse, foldl, foldl1, foldr, foldr1, and, or, any, all, | ||
sum, product, concat, concatMap, maximum, minimum, | ||
scanl, scanl1, scanr, scanr1, iterate, repeat, replicate, cycle, | ||
take, drop, splitAt, takeWhile, dropWhile, span, break, | ||
elem, notElem, lookup, zip, zip3, zipWith, zipWith3, unzip, unzip3, | ||
lines, words, unlines, unwords) | ||
import Data.Maybe | ||
import Data.Monoid | ||
import Data.Num | ||
import Data.Records | ||
import Data.String | ||
import Data.Tuple | ||
import System.IO(IO, putChar, putStr, putStrLn, print, getLine, getContents, interact, | ||
FilePath, readFile, writeFile, appendFile, | ||
cprint, cuprint) | ||
import Text.Show(Show(..), ShowS, shows, showChar, showString, showParen) | ||
import Text.Show | ||
import Primitives(_wordSize, _isWindows) | ||
|
||
-- So we can detect mhs vs ghc | ||
usingMhs :: Bool | ||
usingMhs = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module System.Cmd(system) where | ||
import Prelude(); import MiniPrelude | ||
import Foreign.C.String | ||
import System.Exit | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
module MHSPrelude( | ||
module Control.Applicative, | ||
module Control.Error, | ||
module Control.Monad, | ||
module Control.Monad.Fail, | ||
module Data.Bool, | ||
module Data.Bounded, | ||
module Data.Char, | ||
module Data.Double, | ||
module Data.Either, | ||
module Data.Enum, | ||
module Data.Eq, | ||
module Data.Fractional, | ||
module Data.Function, | ||
module Data.Functor, | ||
module Data.Int, | ||
module Data.Integer, | ||
module Data.Integral, | ||
module Data.List, | ||
module Data.Maybe, | ||
module Data.Monoid, | ||
module Data.Num, | ||
module Data.Ord, | ||
module Data.Ratio, | ||
module Data.Real, | ||
module Data.Records, | ||
module Data.String, | ||
module Data.Tuple, | ||
module System.IO, | ||
module Text.Show, | ||
usingMhs, _wordSize, _isWindows, | ||
) where | ||
import Prelude() | ||
import Control.Applicative(Applicative(..)) | ||
import Control.Error(error, undefined) | ||
import Control.Monad(Monad(..), mapM, mapM_, sequence, sequence_, (=<<)) | ||
import Control.Monad.Fail(MonadFail(..)) | ||
import Data.Bool(Bool(..), (&&), (||), not, otherwise) | ||
import Data.Bounded(Bounded(..)) | ||
import Data.Char(Char, String) | ||
import Data.Double(Double) | ||
import Data.Either(Either(..), either) | ||
import Data.Enum(Enum(..)) | ||
import Data.Eq(Eq(..)) | ||
import Data.Fractional(Fractional(..), (^^)) | ||
import Data.Function(id, const, (.), flip, ($), seq, ($!), until, asTypeOf) | ||
import Data.Functor(Functor(..), (<$>)) | ||
import Data.Int(Int) | ||
import Data.Int.Instances | ||
import Data.Integer(Integer) | ||
import Data.Integral(Integral(..), fromIntegral, gcd, lcm, even, odd, (^)) | ||
import Data.List([](..), map, (++), filter, head, last, tail, init, null, length, (!!), | ||
reverse, foldl, foldl1, foldr, foldr1, and, or, any, all, | ||
sum, product, concat, concatMap, maximum, minimum, | ||
scanl, scanl1, scanr, scanr1, iterate, repeat, replicate, cycle, | ||
take, drop, splitAt, takeWhile, dropWhile, span, break, | ||
elem, notElem, lookup, zip, zip3, zipWith, zipWith3, unzip, unzip3, | ||
lines, words, unlines, unwords) | ||
import Data.Maybe(Maybe(..), maybe) | ||
import Data.Monoid(Monoid(..)) | ||
import Data.Num(Num(..), subtract) | ||
import Data.Ord(Ord(..), Ordering(..)) | ||
import Data.Ratio(Rational) | ||
import Data.Real(Real(..), realToFrac) | ||
import Data.Records -- XXX redo this somehow | ||
import Data.String(IsString(..), lines, unlines, words, unwords) | ||
import Data.Tuple(()(..), fst, snd, curry, uncurry) | ||
import Data.Word(Word) | ||
import System.IO(IO, putChar, putStr, putStrLn, print, getLine, getContents, interact, | ||
FilePath, readFile, writeFile, appendFile, | ||
cprint, cuprint) | ||
import Text.Show(Show(..), ShowS, shows, showChar, showString, showParen) | ||
import Primitives(_wordSize, _isWindows) | ||
|
||
-- So we can detect mhs vs ghc | ||
usingMhs :: Bool | ||
usingMhs = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.