Print functions nicer
This commit is contained in:
		
							parent
							
								
									b56853d133
								
							
						
					
					
						commit
						0e98373389
					
				| @ -102,8 +102,15 @@ formatDependencyTrees = T.concat . (formatDependencyTrees' "") | ||||
|           NoToken -> | ||||
|             [ "--" ] | ||||
| 
 | ||||
|         formatAction :: Text -> Action a b -> [Text] | ||||
|         formatAction :: forall a b. Text -> Action a b -> [Text] | ||||
|         formatAction indentation = \case | ||||
|           Function _ -> | ||||
|             [ "Function " | ||||
|             , T.pack (show (typeRep :: TypeRep a)) | ||||
|             , " -> " | ||||
|             , T.pack (show (typeRep :: TypeRep b)) | ||||
|             , "\n" | ||||
|             ] | ||||
|           MapComp subDeps innerInput innerOutput -> | ||||
|             concat [ [ "MapComp(" ] | ||||
|                    , formatToken innerInput | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user