Print functions nicer
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user