2024-09-11 22:32:14 +02:00
|
|
|
module Main where
|
|
|
|
|
2024-09-21 18:45:39 +02:00
|
|
|
import Types
|
2024-09-21 17:13:20 +02:00
|
|
|
import ComputationM
|
2024-09-21 16:35:13 +02:00
|
|
|
|
2024-09-21 18:45:39 +02:00
|
|
|
testSub :: ComputationM TokenNotTraversable Image
|
|
|
|
testSub = do
|
|
|
|
inp <- getListElem
|
|
|
|
openImage inp
|
|
|
|
|
2024-09-21 16:35:13 +02:00
|
|
|
test :: ComputationM TokenNotTraversable ()
|
|
|
|
test = do
|
|
|
|
dir <- inject "retter"
|
2024-09-21 17:41:04 +02:00
|
|
|
dirContents <- listDirectory dir
|
2024-09-21 18:45:39 +02:00
|
|
|
u <- mapListTaken testSub 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
|