txt2tags to Haddock Converter
FileFlip converts txt2tags to Haddock entirely inside your browser, using Pandoc compiled to WebAssembly. The file is never uploaded to a server: it is read off your disk, converted on your own machine, and saved back by the browser. That means no file-size limit, no queue and no account.
How do I convert a txt2tags file to Haddock?#
- Drop your txt2tags file onto the converter at the top of this page, or click it to pick one from your computer. You can add as many as you like.
- Leave the target set to Haddock and the conversion starts on its own. FileFlip downloads 65.8 MB of WebAssembly the first time and nothing after that, then runs Pandoc on your own machine.
- Save the Haddock file. Your browser writes it straight to your downloads folder, because there was never a server holding it.
Does converting txt2tags to Haddock lose quality?#
Not in the sense of pixels or samples. Converting txt2tags to Haddock rebuilds the file in Haddock's own model rather than re-encoding it, so everything Haddock can represent comes through exactly and anything it cannot has to be dropped. Expect the words to come through exactly and the page breaks to move.
Is it safe to convert txt2tags files online?#
Yes, because nothing is uploaded. FileFlip converts txt2tags files inside the browser tab you already have open, using WebAssembly builds of the same engines a desktop converter would install. Your file is read from your own disk into the page's memory, and no request carrying it is ever made.
You do not have to take that on trust. Open your browser's network panel, run a conversion, and you will see the engine come down and your file go nowhere. There is no upload, no server-side copy, no retention window, and no account tied to what you converted.
How FileFlip works lists every engine, its version and its download size, and shows how to check for yourself that nothing leaves your machine.
What txt2tags to Haddock actually does to the file#
Converting txt2tags to Haddock runs on Pandoc, downloads 65.8 MB of WebAssembly the first time and nothing after that, rebuilds the file in the target's own model, keeps selectable text and page layout.
| Engine | Pandoc |
|---|---|
| Conversion path | One step: txt2tags → Haddock |
| Downloaded to your browser | 65.8 MB, once, then cached by your browser |
| Quality | Rebuilt in the target's model |
| You get back | One file |
| Where it runs | In a background worker, so the page stays responsive |
What survives the conversion
| What is in the file | This conversion | Why |
|---|---|---|
| Selectable text | Kept | Carried through into the converted file. |
| Page layout | Kept | Carried through into the converted file. |
What is a txt2tags file?#
A T2T file holds txt2tags source, Aurelio Jargas' 2001 lightweight markup that its own command-line tool compiles into HTML, LaTeX, MediaWiki, DokuWiki and a dozen other target formats from one source file.
Use txt2tags for a document that needs to compile to several very different output formats from one plain-text source.
Convert a T2T file to Markdown when the txt2tags tool itself is no longer part of the workflow.
What is a Haddock file?#
A Haddock file holds documentation written in Haddock markup, the comment syntax Haskell's own documentation generator reads out of source files to build a module's API reference.
Write Haddock markup directly in Haskell source comments so `cabal haddock` can generate the package's API documentation.
Convert Haddock markup to Markdown when the same text needs to appear in a README or a project website outside the generated API docs.
txt2tags to Haddock questions people ask#
What is a T2T file?
A T2T file holds txt2tags source, a lightweight plain-text markup created by Aurelio Jargas in 2001. It's meant to be compiled, not opened directly, since the txt2tags command-line tool turns one .t2t file into whichever output format the document actually needs.
What formats can txt2tags convert to?
txt2tags compiles a single .t2t source file to HTML, LaTeX, MediaWiki, DokuWiki, man pages, and several other targets, which is the whole point of the format: write once, generate whichever output a given publishing destination needs.
Is txt2tags still maintained?
Yes, though slowly. txt2tags reached version 3.9 in October 2023 under maintainer Jendrik Seipp, well over two decades after Aurelio Jargas' original 2001 release, and the format itself has changed very little in that time.
What is a .haddock file?
A .haddock file holds text written in Haddock markup, the comment syntax Haskell's documentation generator reads. In practice this markup normally lives inside `-- |` and `-- ^` comments in a .hs source file rather than a standalone file, so a .haddock file usually appears when that text has been extracted or converted on its own.