This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Library providing infix Maybe.map & .andThen functions.
version 1.0.0
license MIT
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.0
Committed At 2017-10-28 13:16:14 UTC
elm-lang/core 5.0.0 <= v < 6.0.0 5.1.1

Modules

README

elm-maybe-pipeline

Tired of Maybe.map all the time? Make your code more understandable and readable with MaybePipeline!

Usage

Insted of Maybe.map f ma use ma ma ?> f.

  list
    |> List.head
    ?> .createdAt
    ?> Date.toTime

Insted of Maybe.andThen ma f use ma ?>? f.

  laneId
    |> getLaneById board
    ??> \x -> next x lanes