Reimplement Dart's code formatter (dart format) in Haskell. The agent has full access to the dart_style source code and a reference binary. The resulting Haskell program must produce byte-for-byte identical output to the reference Dart formatter across all test cases.