danyx23 / elm-uuid

Generate and parse UUIDs in Elm
BSD 3-Clause "New" or "Revised" License
48 stars 13 forks source link

Nil UUID #16

Closed janslifka closed 4 years ago

janslifka commented 4 years ago

In some cases, you need to use an empty value (such as Nothing, empty string or list, etc.). There is a nil/empty UUID value [1], however, there is no simple way to create one using the library. It would be nice to have a simple function to create one.

nil : Uuid
nil =
    Uuid "00000000-0000-0000-0000-000000000000"

[1] https://www.uuidgenerator.net/version-nil

danyx23 commented 4 years ago

This package has now been superseded by https://package.elm-lang.org/packages/NoRedInk/elm-uuid/2.0.0/ I'm sure you can submit a PR there to add this.