2024-09-11 22:32:14 +02:00
|
|
|
module Main where
|
|
|
|
|
2024-09-21 17:13:20 +02:00
|
|
|
import Functions
|
|
|
|
import ComputationM
|
2024-09-21 16:35:13 +02:00
|
|
|
|
|
|
|
test :: ComputationM TokenNotTraversable ()
|
|
|
|
test = do
|
|
|
|
dir <- inject "retter"
|
2024-09-21 17:37:37 +02:00
|
|
|
dirContents <- runIO ListDirectory' dir
|
2024-09-21 16:35:13 +02:00
|
|
|
let dirContents' = makeTraversable dirContents
|
2024-09-21 17:37:37 +02:00
|
|
|
u <- mapM (runIO OpenImage') dirContents'
|
2024-09-21 16:35:13 +02:00
|
|
|
pure $ NoToken
|
|
|
|
|
2024-09-11 22:32:14 +02:00
|
|
|
main :: IO ()
|
2024-09-21 17:13:20 +02:00
|
|
|
main = mapM_ print $ evalComputationM test
|