Put sources functionality in its own file

This commit is contained in:
2024-09-21 16:57:03 +02:00
parent 4e412e4366
commit 2549d5af1b
2 changed files with 16 additions and 20 deletions

16
byg/src/Sources.hs Normal file
View File

@@ -0,0 +1,16 @@
{-# LANGUAGE FunctionalDependencies #-}
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
class SourceState a => IsFIO f a b | f -> a b where
runFIO :: f -> a -> IO b