From 1d83167c0124f5c07a3cf6d2df2b826691d76ed7 Mon Sep 17 00:00:00 2001 From: Douglas Warren Date: Wed, 14 Nov 2007 16:26:47 +0000 Subject: [PATCH] Fixed some haddock parsing problems in the documentation --- common/FlowGraphTest.hs | 2 +- common/ShowCode.hs | 2 +- common/Types.hs | 2 +- common/Utils.hs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/FlowGraphTest.hs b/common/FlowGraphTest.hs index 58183f4..ae9857d 100644 --- a/common/FlowGraphTest.hs +++ b/common/FlowGraphTest.hs @@ -378,7 +378,7 @@ oneofLS fs n = oneofL $ applyAll n (filterFuncs n fs) filterFuncs sz = map snd . filter ((>=) sz . fst) -- | A function that takes a "find" parameter, a "replace" parameter, and returns a monadic function --- (for convenience) that performs the check/replacement. +-- (for convenience) that performs the check\/replacement. replaceM :: (Eq a, Monad m) => a -> a -> (a -> m a) replaceM find replace x | find == x = return replace | otherwise = return x diff --git a/common/ShowCode.hs b/common/ShowCode.hs index 7a6eab9..e34928b 100644 --- a/common/ShowCode.hs +++ b/common/ShowCode.hs @@ -28,7 +28,7 @@ with this program. If not, see . -- So I'm committing this for the time being, but it really does need some work (and some tests, of course*) later on. --- * My plan for testing was to take each of the cgtests, and parse it in to AST_A. Then print AST_A using this +-- My plan for testing was to take each of the cgtests, and parse it in to AST_A. Then print AST_A using this -- module, and feed it back in to the parser to get AST_B. Then check if AST_A and AST_B are equal. module ShowCode (showCode, showOccam, showRain, formatCode, extCode) where diff --git a/common/Types.hs b/common/Types.hs index 6b5d2b3..7857e1d 100644 --- a/common/Types.hs +++ b/common/Types.hs @@ -208,7 +208,7 @@ dyadicIsBoolean A.MoreEq = True dyadicIsBoolean A.After = True dyadicIsBoolean _ = False --- | In occam, things that are arrays/lists (literals, constructors, etc) are arrays. However, in Rain they are lists. +-- | In occam, things that are arrays\/lists (literals, constructors, etc) are arrays. However, in Rain they are lists. -- This function chooses between the two types accordingly. The dimensions are only relevant in occam. typeOfArrayList :: CSM m => [A.Dimension] -> A.Type -> m A.Type typeOfArrayList dims innerType diff --git a/common/Utils.hs b/common/Utils.hs index 0255cbb..cb29c71 100644 --- a/common/Utils.hs +++ b/common/Utils.hs @@ -136,7 +136,7 @@ seqPair (x,y) = do x' <- x -- | Forms the powerset of a given list. -- It uses the list monad cleverly, and it scares me. But it works. --- Taken from: http://www.haskell.org/haskellwiki/Blow_your_mind +-- Taken from: http:\/\/www.haskell.org\/haskellwiki\/Blow_your_mind powerset :: [a] -> [[a]] powerset = filterM (const [True, False])