servant-typescript 0.1.0.1 → 0.1.0.2
raw patch · 4 files changed
+13/−13 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +8/−0
- README.md +2/−10
- servant-typescript.cabal +1/−1
- src/Servant/TypeScript.hs +2/−2
ChangeLog.md view
@@ -1,3 +1,11 @@ # Changelog for servant-typescript ## Unreleased changes++## 0.1.0.2++* Fix to actually write to the configured directory.++## 0.1.0.1++* Initial release
README.md view
@@ -43,17 +43,9 @@ ```haskell instance HasForeign LangTS Text WebSocket where type Foreign Text WebSocket = Text- foreignFor _lang _pf _ _req = "void"--instance HasForeign LangTS Text WebSocketPending where- type Foreign Text WebSocketPending = Text- foreignFor _lang _pf _ _req = "void"--instance HasForeign LangTSDecls [TSDeclaration] WebSocketPending where- type Foreign [TSDeclaration] WebSocketPending = [TSDeclaration]- foreignFor _lang _pf _ _req = []+ foreignFor _ _ _ _ = "void" instance HasForeign LangTSDecls [TSDeclaration] WebSocket where type Foreign [TSDeclaration] WebSocket = [TSDeclaration]- foreignFor _lang _pf _ _req = []+ foreignFor _ _ _ _ = [] ```
servant-typescript.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: servant-typescript-version: 0.1.0.1+version: 0.1.0.2 synopsis: TypeScript client generation for Servant description: Please see the README on GitHub at <https://github.com/codedownio/servant-typescript> category: Web
src/Servant/TypeScript.hs view
@@ -91,8 +91,8 @@ -- | Write the TypeScript client library for the given API to the given folder. writeTypeScriptLibrary' :: forall api. MainConstraints api => ServantTypeScriptOptions -> Proxy api -> FilePath -> IO () writeTypeScriptLibrary' opts _ rootDir = flip runReaderT opts $ do- writeClientTypes (Proxy @api) "/tmp/test"- writeClientLibraries (Proxy @api) "/tmp/test"+ writeClientTypes (Proxy @api) rootDir+ writeClientLibraries (Proxy @api) rootDir writeClientTypes :: forall api. ( HasForeign LangTSDecls [TSDeclaration] api