[docs fixed paolo.veronelli@gmail.com**20080209175120] { adddir ./docs/src hunk ./Hedi.cabal 13 - +Library + Exposed-Modules: Engine,Editor,Operation,Eval,Parser,Helper,Offset, + Main,Test,Buffer,Undo + Build-Depends: base,mtl,parsec,regex-posix,readline,QuickCheck, + process,pretty + hunk ./Test.hs 52 +-- | valid data for testing +data Test = Test { + commandT ::String, -- ^ The command to test + inputT ::[String], -- ^ What will be eventually read as input + startT ::[String], -- ^ The file as a list of line + endT ::[String] -- ^ The modified file + } hunk ./Test.hs 60 -data Test = Test - String -- ^ The command to test - [String] -- ^ What will be eventually read as input - [String] -- ^ The file as a list of line - [String] -- ^ The modified file - -prima,seconda,terza = lines "prima\nseconda\nterza" +[prima,seconda,terza] = lines "prima\nseconda\nterza" hunk ./Test.hs 62 -test = Test "$a" [prima] [seconda] [seconda,prima] == Right True +test = Test "$a" [prima] [seconda] [seconda,prima] hunk ./docs/Buffer.html 22 ->Hedi-0.1: Line oriented editor
Source
Hedi-0.1: Line oriented editor
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Hedi-0.1: Line oriented editor
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Hedi-0.1: Line oriented editor
Source
Source
Source
Source
Hedi-0.1: Line oriented editor
Source
Source
Source
Source
Source
Source
Source
Hedi-0.1: Line oriented editor
Source
Source
Source
Hedi-0.1: Line oriented editor
Source
Source
Source
Source
Source
Source
Hedi-0.1: Line oriented editor
Source
Source
Source
Source
Source
Source
Source
Hedi-0.1: Line oriented editor
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
+ +Paths_Hedi
 Hedi-0.1: Line oriented editorSource codeContentsIndex
Paths_Hedi
Documentation
version :: VersionSource
getBinDir :: IO FilePathSource
getLibDir :: IO FilePathSource
getDataDir :: IO FilePathSource
getLibexecDir :: IO FilePathSource
getDataFileName :: FilePath -> IO FilePathSource
Produced by Haddock version 2.0.0.0
addfile ./docs/Test.html hunk ./docs/Test.html 1 + + +Test
 Hedi-0.1: Line oriented editorSource codeContentsIndex
Test
Description
some framework to test Editor m w functions, providing a non IO-stacked monad m +
Synopsis
data Console = Console {
cinput :: [Maybe String]
coutput :: [String]
}
type WESC = WriterT [String] (State Console)
readfile :: String -> ErrorT String WESC String
commandTest :: Test -> Either [String] Bool
data Test = Test {
commandT :: String
inputT :: [String]
startT :: [String]
endT :: [String]
}
Documentation
data Console Source
Constructors
Console
cinput :: [Maybe String]
coutput :: [String]
type WESC = WriterT [String] (State Console)Source
readfile :: String -> ErrorT String WESC StringSource
commandTestSource
:: Testtest to be executed +
-> Either [String] BoolLeft on errors, Right with the test +
Testing a console function leaving out file IO +
data Test Source
valid data for testing +
Constructors
Test
commandT :: StringThe command to test +
inputT :: [String]What will be eventually read as input +
startT :: [String]The file as a list of line +
endT :: [String]The modified file +
Produced by Haddock version 2.0.0.0
hunk ./docs/Undo.html 22 ->Hedi-0.1: Line oriented editor
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
(Index)Hedi-0.1: Line oriented editor (Index)Hedi-0.1: Line oriented editor
BufferEditorEditorBuffercinputTestcommandTTestcommandTestTestConsole1 (Type/Class)Test2 (Data Constructor)TestcoutputTestendTTestgetBinDirPaths_HedigetDataDirPaths_HedigetDataFileNamePaths_HedigetLibDirPaths_HedigetLibexecDirPaths_HediignoreSioTestinputTTestlogerrorsTestnormalOutputTestpredefinedInputTestprimaTestreadfileTestsecondaTeststartTTestterzaTestTest1 (Type/Class)Test2 (Data Constructor)TesttestTestversionPaths_HediWESCTestwritefileTestHedi-0.1: Line oriented editorHedi-0.1: Line oriented editorHedi-0.1: Line oriented editorHaskell line editor. Cloned from ed manual. +Paths_HediTest Main.hs - haddock -B /usr/local/lib/ghc-6.8.2/ \ - --source-module=http://code.haskell.org/Hedi/%M.hs \ - -o docs -h Main.hs - mv Main.original.hs Main.hs + runhaskell Setup.lhs haddock --hyperlink-source --hscolour-css=hscolour.css + cp -R dist/doc/html/Hedi/* docs hunk ./makefile 9 - darcs record && darcs push catenova.org:public_html/Hedi --all \ + darcs record \ + && darcs push catenova.org:public_html/Hedi --all \ hunk ./makefile 15 - runhaskell Setup.lhs install }