servant-js: export CommonGeneratorOptions constructors
Allow defCommonGeneratorOptions to be customized using record update
syntax.
Without the re-export, we can't do:
```
import qualified Servant.JS as SJS
myOptions =
SJS.defCommonGeneratorOptions
{ SJS.moduleName = "myModule"
, SJS.urlPrefix = "http://localhost"
}
```
commitf2a91cfb1f7217c509b42bdb7b91ef5553822ca4
authorMatt Bray <mattjbray@gmail.com>
dateWed 4 Nov 2015, 10:11 (11 years ago)
parent6c50beb
servant-js/src/Servant/JS.hs+1−1
@@ -76,7 +76,7 @@ module Servant.JS
7676 , JavaScriptGenerator
7777
7878 , -- * Options common to all generators
79− CommonGeneratorOptions
79+ CommonGeneratorOptions(..)
8080 , defCommonGeneratorOptions
8181
8282 , -- * Function renamers