The original renderBootstrap code was heavily modified by Mladen Srdic [1]. I took his code and modified it as well, and the result is this commit. [1] https://www.fpcomplete.com/user/msrdic/bootstrap-3-forms-with-yesod-1