mad/byg/src/Sources.hs

21 lines
384 B
Haskell
Raw Normal View History

module Sources where
2024-09-21 18:02:20 +02:00
import Types
import Data.ByteString (ByteString)
data Source a where
Data :: a -> Source a
class SourceState a where
stateOfSource :: a -> IO ByteString
instance SourceState FilePath where
stateOfSource = undefined
2024-09-21 18:02:20 +02:00
instance SourceState Image where
stateOfSource = undefined
instance SourceState (String, FilePath) where
stateOfSource = undefined