Skip to content

Commit

Permalink
Add 'Never' type to the prelude.
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Sep 1, 2024
1 parent 653f323 commit 1906506
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/aiken.ak
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,20 @@ pub type Option<a> {
None
}

/// <small>Minimum Plutus Version</small> | <small>1</small>
/// --- | ---
///
/// A type that like [`Option`](#Option) but that is always `None`. Fundamentally, we have:
///
/// ```aiken
/// let never: Data = Never
/// let none: Data = None
/// never == none
/// ```
pub type Never {
Never
}

/// <small>Minimum Plutus Version</small> | <small>1</small>
/// --- | ---
///
Expand Down

0 comments on commit 1906506

Please sign in to comment.