mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-23 22:22:07 +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
|