Skip to content

Commit 87e2995

Browse files
authored
Merge pull request #61 from purescript/fix-shadow
Fix shadowed name warnings
2 parents 3bd5895 + e50c376 commit 87e2995

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# purescript-free
22

3-
[![Latest release](http://img.shields.io/bower/v/purescript-free.svg)](https://github.com/purescript/purescript-free/releases)
4-
[![Build Status](https://travis-ci.org/purescript/purescript-free.svg?branch=master)](https://travis-ci.org/purescript/purescript-free)
5-
[![Dependency Status](https://www.versioneye.com/user/projects/55848c7336386100150003e9/badge.svg?style=flat)](https://www.versioneye.com/user/projects/55848c7336386100150003e9)
3+
[![Latest release](http://img.shields.io/github/release/purescript/purescript-free.svg)](https://github.com/purescript/purescript-free/releases)
4+
[![Build status](https://travis-ci.org/purescript/purescript-free.svg?branch=master)](https://travis-ci.org/purescript/purescript-free)
65

76
Free monad, Cofree comonad, Yoneda and Coyoneda functors, and the Trampoline monad implementations for PureScript.
87

src/Control/Comonad/Cofree.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ instance applicativeCofree :: Alternative f => Applicative (Cofree f) where
105105
instance bindCofree :: Alternative f => Bind (Cofree f) where
106106
bind fa f = loop fa
107107
where
108-
loop fa =
109-
let fh = f (head fa)
110-
in mkCofree (head fh) ((tail fh) <|> (loop <$> tail fa))
108+
loop fa' =
109+
let fh = f (head fa')
110+
in mkCofree (head fh) ((tail fh) <|> (loop <$> tail fa'))
111111

112112
instance monadCofree :: Alternative f => Monad (Cofree f)

src/Control/Monad/Free.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ toView (Free v s) =
179179
Bind f (\a -> unsafeCoerceFree (concatF (k a) s))
180180
where
181181
concatF :: Free f Val -> CatList (ExpF f) -> Free f Val
182-
concatF (Free v l) r = Free v (l <> r)
182+
concatF (Free v' l) r = Free v' (l <> r)
183183

184184
runExpF :: ExpF f -> (Val -> Free f Val)
185185
runExpF (ExpF k) = k

0 commit comments

Comments
 (0)