This belongs here
This commit is contained in:
		
							parent
							
								
									8575bd061a
								
							
						
					
					
						commit
						124d9fa4d8
					
				| @ -1,4 +1,5 @@ | ||||
| {-# LANGUAGE GADTs #-} | ||||
| {-# LANGUAGE FunctionalDependencies #-} | ||||
| module Functions where | ||||
| 
 | ||||
| import Sources | ||||
| @ -24,6 +25,11 @@ data FunctionIO a b where | ||||
| deriving instance Show (FunctionIO a b) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| class (SourceState a, Show f) => IsFIO f a b | f -> a b where | ||||
|   runFIO :: f -> a -> IO b | ||||
| 
 | ||||
| 
 | ||||
| data ListDirectory' = ListDirectory' | ||||
|   deriving (Show) | ||||
| instance IsFIO ListDirectory' FilePath [FilePath] where | ||||
|  | ||||
| @ -1,4 +1,3 @@ | ||||
| {-# LANGUAGE FunctionalDependencies #-} | ||||
| module Sources where | ||||
| 
 | ||||
| import Data.ByteString (ByteString) | ||||
| @ -11,6 +10,3 @@ class SourceState a where | ||||
| 
 | ||||
| instance SourceState FilePath where | ||||
|   stateOfSource = undefined | ||||
| 
 | ||||
| class (SourceState a, Show f) => IsFIO f a b | f -> a b where | ||||
|   runFIO :: f -> a -> IO b | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user