Skip to content

Commit

Permalink
* Pugs.Eval -- Silenced a warning about an unused parameter.
Browse files Browse the repository at this point in the history
* Pugs.Parser -- Extremely minor cosmetical fix.
* READTHEM -- Added my favourite Monad tutorial :)



git-svn-id: http://svn.pugscode.org/pugs@4457 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
iblech committed Jun 8, 2005
1 parent 11b7f10 commit 9882b8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions READTHEM
Expand Up @@ -29,6 +29,8 @@ Haskell Mini-Primer (this covers infix $ and . operators)
<http://conal.net/pan/haskell-primer.htm>
Harrorth - A implemenation journal for a haskell project in tutorial format
<http://feather.perl6.nl/~nothingmuch/harrorth/>
All About Monads - Jeff Newbern
<http://www.nomaware.com/monads/html/index.html>

= Perl 6 books (always outdated :))

Expand Down
2 changes: 1 addition & 1 deletion src/Pugs/Eval.hs
Expand Up @@ -242,7 +242,7 @@ findVarRef name
vref <- liftSTM (readTVar tvref)
let val = VRef vref
return (key, val)
padEntryToHashEntry (key, []) = do fail "Nonexistant var in pad?"
padEntryToHashEntry (_, []) = do fail "Nonexistant var in pad?"
doFindVarRef :: Var -> Eval (Maybe (TVar VRef))
doFindVarRef name = do
callCC $ \foundIt -> do
Expand Down
2 changes: 1 addition & 1 deletion src/Pugs/Parser.hs
Expand Up @@ -982,7 +982,7 @@ parseOpWith :: (DynParsers -> RuleParser Exp) -> RuleParser Exp
parseOpWith f = do
state <- getState
case ruleDynParsers state of
MkDynParsersEmpty -> refillCache state f
MkDynParsersEmpty -> refillCache state f
p -> f p
where
refillCache state f = do
Expand Down

0 comments on commit 9882b8e

Please sign in to comment.