diff --git a/.travis.yml b/.travis.yml index 8fad823..9245e64 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,7 @@ +cache: + directories: + - ${HOME}/.elm + language: node_js node_js: diff --git a/src/Tagged.elm b/src/Tagged.elm index b225db9..9eba8ae 100644 --- a/src/Tagged.elm +++ b/src/Tagged.elm @@ -1,4 +1,17 @@ -module Tagged exposing (..) +module Tagged + exposing + ( Tagged(..) + , andMap + , andThen + , ap + , bind + , extend + , map + , map2 + , retag + , tag + , untag + ) {-| A module that allows you to "tag" a value. @@ -62,6 +75,7 @@ ap : Tagged tag (oldValue -> newValue) -> Tagged tag oldValue -> Tagged tag newV ap (Tagged f) (Tagged x) = Tagged (f x) + {-| Useful for composing functions together in a pipeline: foo = @@ -93,6 +107,7 @@ andThen : (oldValue -> Tagged tag newValue) -> Tagged tag oldValue -> Tagged tag andThen f (Tagged x) = f x + {-| Useful for restricting the tag created in a polymorphic function. -} bind : Tagged tag oldValue -> (oldValue -> Tagged tag newValue) -> Tagged tag newValue diff --git a/src/Tagged/Dict.elm b/src/Tagged/Dict.elm index 16b1844..9a43b56 100644 --- a/src/Tagged/Dict.elm +++ b/src/Tagged/Dict.elm @@ -1,4 +1,32 @@ -module Tagged.Dict exposing (..) +module Tagged.Dict + exposing + ( TaggedDict + , diff + , empty + , filter + , foldl + , foldr + , fromList + , fromUntaggedList + , get + , insert + , intersect + , isEmpty + , keys + , map + , member + , merge + , partition + , remove + , singleton + , size + , toList + , toUntaggedList + , union + , untaggedKeys + , update + , values + ) {-| A module that allows tagging dictionaries, while maintaining an API parallel to `Dict`. diff --git a/src/Tagged/Set.elm b/src/Tagged/Set.elm index b2003ec..93d8077 100644 --- a/src/Tagged/Set.elm +++ b/src/Tagged/Set.elm @@ -1,4 +1,26 @@ -module Tagged.Set exposing (..) +module Tagged.Set + exposing + ( TaggedSet + , diff + , empty + , filter + , foldl + , foldr + , fromList + , fromUntaggedList + , insert + , intersect + , isEmpty + , map + , member + , partition + , remove + , singleton + , size + , toList + , toUntaggedList + , union + ) {-| A module that allows tagging sets, while maintaining an API parallel to `Set`.