packages feed

intro 0.3.2.0 → 0.4.0.0

raw patch · 3 files changed

+9/−33 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Intro: getChar :: MonadIO m => m Char
- Intro: getContents :: MonadIO m => m Text
- Intro: getLine :: MonadIO m => m Text

Files

README.md view
@@ -1,4 +1,4 @@-# Intro: My current Haskell Prelude+# Intro: Safe and minimal Haskell Prelude  [![Hackage](https://img.shields.io/hackage/v/intro.svg)](https://hackage.haskell.org/package/intro) [![Build Status](https://secure.travis-ci.org/minad/intro.png?branch=master)](http://travis-ci.org/minad/intro)@@ -9,22 +9,22 @@ For String overloading the extension 'OverloadedStrings' should be used. Container types and Monad transformers are provided. -Most important - this Prelude tries to keep things simple.+Most important - this Prelude tries to keep things simple and minimal. This means it just reexports from base and commonly used libraries and adds only very few additional functions.  List of design decisions: -* Keep everything at one place (There are three modules and Intro.Trustworthy is only there for Safe Haskell)+* Keep everything at one place (There are three modules and Intro.Trustworthy is needed for Safe Haskell) * Conservative extension over the base Prelude-* Rely only on very common external libraries+* Rely only on common additional libraries * Avoid writing custom functions-* Export everything explicitly to provide a stable interface and for good documentation+* Export everything explicitly to provide a stable interface and good documentation * Export only total functions or provide safe alternatives (Very few exceptions like div etc.) * Prefer Text over String, provide ConvertString and EncodeString * Provide Monad transformers * Provide container types * Prefer generic functions * Debugging functions, like 'Intro.Trustworthy.trace' and 'undefined' are available but produce compile time warnings-* Don't provide error, only panic instead+* Replace error with panic * Compatibility with unqualified import of Control.Lens
intro.cabal view
@@ -2,11 +2,11 @@ -- -- see: https://github.com/sol/hpack ----- hash: bf4710de9bcc3cde9d216eb32ac0b74414062c4cb6312f60f8c064a35f32ae1e+-- hash: fe99491e539a0e1a9b6714e5daca6be1d852902f5973d02063652d4eeb8c9b1e  name:           intro-version:        0.3.2.0-synopsis:       "Fixed Prelude" - Mostly total and safe, provides Text and Monad transformers+version:        0.4.0.0+synopsis:       Safe and minimal prelude - Exports only total and safe functions, provides Text and Monad transformers description:    Intro is a modern Prelude which provides safe alternatives                 for most of the partial functions and follows other                 best practices, e.g., Text is preferred over String.
src/Intro.hs view
@@ -638,9 +638,6 @@   , Control.Monad.Trans.MonadIO(liftIO)    -- ** Console-  , getChar-  , getContents-  , getLine   , print   , putChar   , putStr@@ -816,27 +813,6 @@ print :: (MonadIO m, Show a) => a -> m () print = liftIO . System.IO.print {-# INLINE print #-}---- | The 'getContents' operation returns all user input as a strict 'Text'.------ __Note__: This function is lifted to the 'MonadIO' class.-getContents :: MonadIO m => m Text-getContents = liftIO Data.Text.IO.getContents-{-# INLINE getContents #-}---- | Read a line from the standard input device as a strict 'Text'.------ __Note__: This function is lifted to the 'MonadIO' class.-getLine :: MonadIO m => m Text-getLine = liftIO Data.Text.IO.getLine-{-# INLINE getLine #-}---- | Read a character from the standard input device.------ __Note__: This function is lifted to the 'MonadIO' class.-getChar :: MonadIO m => m Char-getChar = liftIO System.IO.getChar-{-# INLINE getChar #-}  -- | Write a strict 'Text' to the standard output device. --