mad/byg/src/Sources.hs

13 lines
233 B
Haskell
Raw Normal View History

module Sources where
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