Skip to content

Instantly share code, notes, and snippets.

@Lysxia
Created December 22, 2018 16:21
Show Gist options
  • Select an option

  • Save Lysxia/01c0ff0d6dca65ba1e456719fea2adba to your computer and use it in GitHub Desktop.

Select an option

Save Lysxia/01c0ff0d6dca65ba1e456719fea2adba to your computer and use it in GitHub Desktop.
data Status = Expired | Valid
data SStatus (_ :: Status) where
SExpired :: SStatus 'Expired
SValid :: SStatus 'Valid
data Node (s :: Status) =
{ ...
, anStatus :: SStatus s
...
}
data Node' where
Node' :: Node s -> Node'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment