Skip to content

nwtgck/struct-indenter-haskell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

struct-indenter

Beautify nested structure

NOTE: This implementation is poor.

Example Usage

stack build
echo 'MyStruct(1,2,3,MyItem("hello, world"), Struct(Array(Struct(Struct()))))' | stack exec struct-indenter-exe

Then you will have the following output.

MyStruct(
  1,
  2,
  3,
  MyItem(
    hello, world
  ),
   Struct(
    Array(
      Struct(
        Struct(

        )
      )
    )
  )
)