This question is pretty dumb, but I did not find a direct solution.
Assuming I have a model that looks like this: - at least this one is big.
initModel =
{ selectedCategory = "Vacantion"
, context = "root/Work"
, abstractSyntaxTree =
[ { categoryName = "Work"
, categoryContent =
[]
}
, { categoryName = "Vacation"
, categoryContent =
[ { folderName = "Hawaii"
, folderContent =
FolderContent
( [ { folderName = "Booking"
, folderContent = FolderContent ( [], [] )
}
]
, [ "flightTicket.jpg" ]
)
}
]
}
]
}
Question: How can I display it in a browser so that it looks good? - nothing special - just see what happens as a quick debugger ..
What I have tried so far:
view =
div []
[ pre [style [("width", "300") ] ] [ text (toString model)]
]
Works great on smaller models, but in this case, I get this long -single line in the format of a json-like structure:

, : prettify, Google Chrome, , , \n . , \n - , .
text (toSting model) - , \n - , - 300 .
- \n - , , , \n. , . , , ... .. , . , . ..
, , ?