Skip to content

Commit

Permalink
Merge pull request #11 from joneshf/more-0.19.0-fixes
Browse files Browse the repository at this point in the history
List exports explicitly
  • Loading branch information
joneshf authored Aug 28, 2018
2 parents aa264ef + 720f24f commit ac36254
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
cache:
directories:
- ${HOME}/.elm

language: node_js

node_js:
Expand Down
17 changes: 16 additions & 1 deletion src/Tagged.elm
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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 =
Expand Down Expand Up @@ -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
Expand Down
30 changes: 29 additions & 1 deletion src/Tagged/Dict.elm
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
24 changes: 23 additions & 1 deletion src/Tagged/Set.elm
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down

0 comments on commit ac36254

Please sign in to comment.