Skip to content

Commit 46566eb

Browse files
committed
Comment: use fst rather than first
`fst` is the name of the first projection, `first` is the name of a bifunctor action.
1 parent d8a9aba commit 46566eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Unrestricted/Linear.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
-- If a type is 'Consumable', you can __consume__ it in a linear function that
2323
-- doesn't need that value to produce it's result:
2424
--
25-
-- > first :: Consumable b => (a,b) %1-> a
26-
-- > first (a,b) = withConsume (consume b) a
25+
-- > fst :: Consumable b => (a,b) %1-> a
26+
-- > fst (a,b) = withConsume (consume b) a
2727
-- > where
2828
-- > withConsume :: () %1-> a %1-> a
2929
-- > withConsume () x = x

0 commit comments

Comments
 (0)