packages feed

uu-cco 0.1.0.3 → 0.1.0.4

raw patch · 2 files changed

+7/−4 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- CCO.Component: instance Arrow Component
- CCO.Component: instance ArrowChoice Component
- CCO.Component: instance Category Component
- CCO.Feedback: instance Applicative Feedback
- CCO.Feedback: instance Functor Feedback
- CCO.Feedback: instance Monad Feedback
- CCO.Lexing: instance Alternative Lexer
- CCO.Lexing: instance Alternative Steps
- CCO.Lexing: instance Applicative Lexer
- CCO.Lexing: instance Applicative Steps
- CCO.Lexing: instance Functor Lexer
- CCO.Lexing: instance Functor Steps
- CCO.Parsing: instance Applicative (Parser s)
- CCO.Parsing: instance Functor (Parser s)
- CCO.Parsing: instance Printable Diagnosis
- CCO.Parsing: instance Symbol Char
- CCO.Parsing: instance Symbol s => Alternative (Parser s)
- CCO.Printing: instance Printable Char
- CCO.Printing: instance Printable Double
- CCO.Printing: instance Printable Float
- CCO.Printing: instance Printable Int
- CCO.Printing: instance Printable Integer
- CCO.SourcePos: instance Eq Pos
- CCO.SourcePos: instance Eq Source
- CCO.SourcePos: instance Eq SourcePos
- CCO.SourcePos: instance Read Pos
- CCO.SourcePos: instance Read Source
- CCO.SourcePos: instance Read SourcePos
- CCO.SourcePos: instance Show Pos
- CCO.SourcePos: instance Show Source
- CCO.SourcePos: instance Show SourcePos
- CCO.SourcePos: instance Tree Pos
- CCO.SourcePos: instance Tree Source
- CCO.SourcePos: instance Tree SourcePos
- CCO.Tree.Parser: instance Applicative ArgumentParser
- CCO.Tree.Parser: instance Functor ArgumentParser
- CCO.Tree.Parser: instance Functor TreeParser
+ CCO.Component: instance Control.Arrow.Arrow CCO.Component.Component
+ CCO.Component: instance Control.Arrow.ArrowChoice CCO.Component.Component
+ CCO.Component: instance Control.Category.Category CCO.Component.Component
+ CCO.Feedback: instance GHC.Base.Applicative CCO.Feedback.Feedback
+ CCO.Feedback: instance GHC.Base.Functor CCO.Feedback.Feedback
+ CCO.Feedback: instance GHC.Base.Monad CCO.Feedback.Feedback
+ CCO.Lexing: instance GHC.Base.Alternative CCO.Lexing.Lexer
+ CCO.Lexing: instance GHC.Base.Alternative CCO.Lexing.Steps
+ CCO.Lexing: instance GHC.Base.Applicative CCO.Lexing.Lexer
+ CCO.Lexing: instance GHC.Base.Applicative CCO.Lexing.Steps
+ CCO.Lexing: instance GHC.Base.Functor CCO.Lexing.Lexer
+ CCO.Lexing: instance GHC.Base.Functor CCO.Lexing.Steps
+ CCO.Parsing: instance CCO.Parsing.Symbol GHC.Types.Char
+ CCO.Parsing: instance CCO.Parsing.Symbol s => GHC.Base.Alternative (CCO.Parsing.Parser s)
+ CCO.Parsing: instance CCO.Printing.Printable CCO.Parsing.Diagnosis
+ CCO.Parsing: instance GHC.Base.Applicative (CCO.Parsing.Parser s)
+ CCO.Parsing: instance GHC.Base.Functor (CCO.Parsing.Parser s)
+ CCO.Printing: instance CCO.Printing.Printable GHC.Integer.Type.Integer
+ CCO.Printing: instance CCO.Printing.Printable GHC.Types.Char
+ CCO.Printing: instance CCO.Printing.Printable GHC.Types.Double
+ CCO.Printing: instance CCO.Printing.Printable GHC.Types.Float
+ CCO.Printing: instance CCO.Printing.Printable GHC.Types.Int
+ CCO.SourcePos: instance CCO.Tree.Base.Tree CCO.SourcePos.Pos
+ CCO.SourcePos: instance CCO.Tree.Base.Tree CCO.SourcePos.Source
+ CCO.SourcePos: instance CCO.Tree.Base.Tree CCO.SourcePos.SourcePos
+ CCO.SourcePos: instance GHC.Classes.Eq CCO.SourcePos.Pos
+ CCO.SourcePos: instance GHC.Classes.Eq CCO.SourcePos.Source
+ CCO.SourcePos: instance GHC.Classes.Eq CCO.SourcePos.SourcePos
+ CCO.SourcePos: instance GHC.Read.Read CCO.SourcePos.Pos
+ CCO.SourcePos: instance GHC.Read.Read CCO.SourcePos.Source
+ CCO.SourcePos: instance GHC.Read.Read CCO.SourcePos.SourcePos
+ CCO.SourcePos: instance GHC.Show.Show CCO.SourcePos.Pos
+ CCO.SourcePos: instance GHC.Show.Show CCO.SourcePos.Source
+ CCO.SourcePos: instance GHC.Show.Show CCO.SourcePos.SourcePos
+ CCO.Tree.Parser: instance GHC.Base.Applicative CCO.Tree.Parser.ArgumentParser
+ CCO.Tree.Parser: instance GHC.Base.Functor CCO.Tree.Parser.ArgumentParser
+ CCO.Tree.Parser: instance GHC.Base.Functor CCO.Tree.Parser.TreeParser

Files

src/CCO/Component.hs view
@@ -100,9 +100,12 @@ -- | Wraps a 'Component' into a program that provides it with input from the -- standard input channel and relays its output to the standard output channel. ioWrap :: Component String String -> IO ()-ioWrap (C f) = do-  input  <- getContents+ioWrap c = getContents >>= ioRun c >>= putStrLn >> exitWith ExitSuccess++-- | Run a 'Component' in the 'IO' monad. +ioRun :: Component a b -> a -> IO b +ioRun (C f) input = do   result <- runFeedback (f input) 1 1 stderr   case result of     Nothing     -> exitFailure-    Just output -> putStrLn output >> exitWith ExitSuccess+    Just output -> return output
uu-cco.cabal view
@@ -1,5 +1,5 @@ name:                  uu-cco-version:               0.1.0.3+version:               0.1.0.4 synopsis:              Utilities for compiler construction: core functionality description:           A small utility library accompanying the course on                        Compiler Construction (INFOMCCO) at Utrecht Univerity.