on master help sign in
Remove superfluous function

maybeToList is merely an instance of toList

commit3dd83b7a70d1f71c81aace315f7e194ddedde8c3 authorMelvar Chen <Melvar.Chen@googlemail.com> dateTue 10 Dec 2013, 16:37 (13 years ago) parent2f52264
1 file changed−4
libs/prelude/Prelude/List.idr−4
libs/prelude/Prelude/List.idr−4
@@ -464,10 +464,6 @@ sort xs =
464464-- Conversions
465465--------------------------------------------------------------------------------
466466
467−maybeToList : Maybe a -> List a
468−maybeToList Nothing = []
469−maybeToList (Just j) = [j]
470−
471467listToMaybe : List a -> Maybe a
472468listToMaybe [] = Nothing
473469listToMaybe (x::xs) = Just x