mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 20:51:43 +03:00
15 lines
354 B
Idris
15 lines
354 B
Idris
||| Utilities functions for conditionally delaying values.
|
|
module Control.Delayed
|
|
|
|
||| Type-level function for a conditionally infinite type.
|
|
public export
|
|
inf : Bool -> Type -> Type
|
|
inf False t = t
|
|
inf True t = Inf t
|
|
|
|
||| Type-level function for a conditionally lazy type.
|
|
public export
|
|
lazy : Bool -> Type -> Type
|
|
lazy False t = t
|
|
lazy True t = Lazy t
|