mprelude (empty) → 0.1.0
raw patch · 5 files changed
+236/−0 lines, 5 filesdep +basedep +devtoolsdep +source-constraints
Dependencies added: base, devtools, source-constraints, text, text-conversions
Files
- LICENSE +11/−0
- README.md +5/−0
- mprelude.cabal +73/−0
- src/MPrelude.hs +142/−0
- test/Devtools.hs +5/−0
+ LICENSE view
@@ -0,0 +1,11 @@+Copyright 2019-2020 Markus Schirp++Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:++1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.++2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.++3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ README.md view
@@ -0,0 +1,5 @@+++# mprelude++Experimental prelude. Boring, may be its main attribute.
+ mprelude.cabal view
@@ -0,0 +1,73 @@+cabal-version: 1.18++-- This file has been generated from package.yaml by hpack version 0.33.0.+--+-- see: https://github.com/sol/hpack+--+-- hash: 0aa41f3aa33d83b40b847d55b5c0478fd12f6114d80c218e6241eab77dce0dc2++name: mprelude+version: 0.1.0+synopsis: A minimalish prelude.+description: Prelude extracted from observing NoImplicitPrelude using+ projects by https://github.com/mbj.+ .+ Idea is to not design a prelude, but to observe one by+ deduplicating repeated imports cross a larger project space.+category: prelude+homepage: https://github.com/mbj/mprelude#readme+bug-reports: https://github.com/mbj/mprelude/issues+maintainer: Markus Schirp <mbj@schirp-dso.com>+license: BSD3+license-file: LICENSE+build-type: Simple+extra-doc-files:+ README.md++source-repository head+ type: git+ location: https://github.com/mbj/mprelude++flag development+ description: Run GHC with development flags+ manual: True+ default: False++library+ exposed-modules:+ MPrelude+ other-modules:+ Paths_mprelude+ hs-source-dirs:+ src+ default-extensions: CPP DataKinds DeriveAnyClass DeriveGeneric DeriveLift DerivingStrategies DuplicateRecordFields FlexibleContexts GeneralizedNewtypeDeriving MultiParamTypeClasses NoImplicitPrelude OverloadedLists OverloadedStrings RecordWildCards ScopedTypeVariables Strict TemplateHaskell+ ghc-options: -Wall -Wcompat -Widentities -Wimplicit-prelude -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-exported-signatures -Wmissing-local-signatures -Wmonomorphism-restriction -Wredundant-constraints -fplugin=SourceConstraints -funbox-strict-fields+ build-depends:+ base >4.12 && <14.15+ , source-constraints >=0.0.1 && <0.1+ , text >=1.2 && <1.3+ , text-conversions >=0.3 && <0.4+ if flag(development)+ ghc-options: -Werror+ else+ ghc-options: -Wwarn+ default-language: Haskell2010++test-suite devtools+ type: exitcode-stdio-1.0+ main-is: test/Devtools.hs+ other-modules:+ Paths_mprelude+ default-extensions: CPP DataKinds DeriveAnyClass DeriveGeneric DeriveLift DerivingStrategies DuplicateRecordFields FlexibleContexts GeneralizedNewtypeDeriving MultiParamTypeClasses NoImplicitPrelude OverloadedLists OverloadedStrings RecordWildCards ScopedTypeVariables Strict TemplateHaskell+ ghc-options: -Wall -Wcompat -Widentities -Wimplicit-prelude -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-exported-signatures -Wmissing-local-signatures -Wmonomorphism-restriction -Wredundant-constraints -fplugin=SourceConstraints -funbox-strict-fields -rtsopts -threaded -with-rtsopts=-N+ build-depends:+ base >4.12 && <14.15+ , devtools+ , source-constraints >=0.0.1 && <0.1+ , text >=1.2 && <1.3+ , text-conversions >=0.3 && <0.4+ if flag(development)+ ghc-options: -Werror+ else+ ghc-options: -Wwarn+ default-language: Haskell2010
+ src/MPrelude.hs view
@@ -0,0 +1,142 @@+module MPrelude (module Exports, identity) where++import Control.Applicative as Exports+ ( Alternative+ , Applicative+ , (<*>)+ , (<|>)+ , empty+ , pure+ )++import Control.Monad as Exports+ ( Monad+ , (<=<)+ , (=<<)+ , (>>)+ , (>>=)+ , void+ )++import Control.Monad.Fail as Exports+ ( MonadFail+ , fail+ )++import Control.Monad.IO.Class as Exports+ ( MonadIO+ , liftIO+ )++import Data.Bool as Exports+ ( Bool(..)+ , (&&)+ , (||)+ , not+ , otherwise+ )++import Data.Either as Exports+ ( Either(Left, Right)+ , either+ )++import Data.Eq as Exports+ ( Eq+ , (/=)+ , (==)+ )++import Data.Foldable as Exports+ ( Foldable+ , traverse_+ )++import Data.Function as Exports+ ( ($)+ , (&)+ , (.)+ , const+ , flip+ )++import Data.Functor as Exports+ ( Functor+ , (<$>)+ )++import Data.Maybe as Exports+ ( Maybe(Just)+ , fromMaybe+ , listToMaybe+ , maybe+ )++import Data.Monoid as Exports+ ( Monoid+ , mempty+ )++import Data.Ord as Exports+ ( Ord+ , (<)+ , (<=)+ , (>)+ , (>=)+ )++import Data.Semigroup as Exports+ ( Semigroup+ , (<>)+ )++import Data.String as Exports+ ( String+ )++import Data.Text as Exports+ ( Text+ )++import Data.Text.Conversions as Exports+ ( ToText+ , convertText+ , toText+ )++import Data.Traversable as Exports+ ( traverse+ )++import Data.Tuple as Exports+ ( uncurry+ )++import GHC.Enum as Exports+ ( Bounded+ , Enum+ , maxBound+ , minBound+ )++import GHC.Num as Exports+ ( Num+ , (*)+ , (+)+ )++import Numeric.Natural as Exports+ ( Natural+ )++import System.IO as Exports+ ( IO+ )++import Text.Show as Exports+ ( Show+ , show+ )++identity :: a -> a+identity value = value
+ test/Devtools.hs view
@@ -0,0 +1,5 @@+import System.IO (IO)+import qualified Devtools++main :: IO ()+main = Devtools.defaultMain