mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 09:12:34 +03:00
15 lines
292 B
Idris
15 lines
292 B
Idris
module Futures
|
|
|
|
import System.Future
|
|
|
|
-- Checks the interference between CSE optimisations and de-optimisations
|
|
-- and management of lazy values
|
|
|
|
topLevelConstant : Lazy String
|
|
topLevelConstant = "top-level indeed"
|
|
|
|
main : IO ()
|
|
main = do
|
|
let a = await $ fork topLevelConstant
|
|
putStrLn a
|