This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0 1.1.0
We were not able to find the expected elm-package.json file at this tag.
Tag 1.1.1
Committed At 2018-09-23 18:41:47 UTC

Modules

    README

    Build Status

    StorageKey

    A StorageKey represents a value that is either New or Existing.

    Lets take for example an Article. It will have a unique Id, and the article record itself. How would we distinguish between an existing Article (one that was fetched from the backend) vs a new one, while still having type safety?

    Here is how this package helps along with this pattern.

    -- http://package.elm-lang.org/packages/Gizra/elm-dictlist/latest
    -- It's like EveryDict, only it will maintain the order as-well.
    import EveryDictList
    
    type alias Article =
        { label : String
        , body : String
        }
    
    
    {-| The Article ID is type safe.
    -}
    type ArticleId
        = ArticleId Int
    
    
    {-| We wrap the `ArticleId` with the `StorageKey`.
    -}
    type alias StorageKeyArticle =
        StorageKey ArticleId
    
    
    type alias EveryDictListArticles =
        EveryDictList StorageKeyArticle Article
    
    
    type alias Person =
        { name : String
        , articles : EveryDictListArticles
        }
    

    Installation

    elm-package install Gizra/elm-storage-key

    Tests

    Install package: npm install -g elm-test

    Execute tests: ./execute-tests