Skip to content

Commit

Permalink
printDVD
Browse files Browse the repository at this point in the history
  • Loading branch information
echatav committed Jan 15, 2024
1 parent 5572838 commit 6527a9d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Control/Monad/Trans/Indexed/Free.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ swap dvd = Indexed.do
return dvd'
:}
>>> import Control.Monad.Trans
>>> :{
printDVD :: IxFree free => free (IxMap DVDCommand) 'True 'True IO ()
printDVD = Indexed.do
dvd <- eject
insert dvd
lift $ putStrLn dvd
:}
-}
class
( forall f. IxFunctor f => IndexedMonadTrans (free f)
Expand Down

0 comments on commit 6527a9d

Please sign in to comment.