In short:
Never marks states as impossible
top : Empty Never (StackFilled element) -> elementPossibly marks states as possible
empty : Empty Possibly filling_→ you can carry over non-emptiness-information
import Fillable exposing (Empty(..), toFillingOrIfEmpty)
type FocusHole possiblyOrNever item
= Item item
| Hole possiblyOrNever
toFocus :
Empty possiblyOrNever value
-> FocusHole possiblyOrNever value
toFocus =
\fillable ->
case fillable of
Empty possiblyOrNever ->
Hole possiblyOrNever
Filled value ->
value |> Itemor
toFocus =
\fillable ->
fillable
|> Fillable.map Item
|> toFillingOrIfEmpty HoleIf you still have questions, check out the readme.
Marks a state as possible to occur.
in results
in type declarations
where
WithoutConstructorFunctionstops the compiler from creating a positional constructor function forModel.Read more about the general idea in the module documentation. or readme.