Skip to content

Commit ec91584

Browse files
matthewleonpaf31
authored andcommitted
style: more usage of ~> (#99)
1 parent 4f17b04 commit ec91584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/List/NonEmpty.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ head (NonEmptyList (x :| _)) = x
4848
last :: forall a. NonEmptyList a -> a
4949
last (NonEmptyList (x :| xs)) = fromMaybe x (L.last xs)
5050

51-
tail :: forall a. NonEmptyList a -> L.List a
51+
tail :: NonEmptyList ~> L.List
5252
tail (NonEmptyList (_ :| xs)) = xs
5353

54-
init :: forall a. NonEmptyList a -> L.List a
54+
init :: NonEmptyList ~> L.List
5555
init (NonEmptyList (x :| xs)) = maybe L.Nil (x : _) (L.init xs)
5656

5757
uncons :: forall a. NonEmptyList a -> { head :: a, tail :: L.List a }

0 commit comments

Comments
 (0)