Fix servant-js examples
The Servant.JS Counter example was broken: - `axios` was not completely applied. It now uses `defAxiosOptions` similarly to the `angular` example - `OverloadedStrings` was required, but not included
This commit is contained in:
parent
5effdfdbbb
commit
a8e1315ee7
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
{-# LANGUAGE DataKinds #-}
|
||||
{-# LANGUAGE DeriveGeneric #-}
|
||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
{-# LANGUAGE TypeOperators #-}
|
||||
|
||||
import Control.Concurrent.STM
|
||||
|
@ -92,7 +93,7 @@ main = do
|
|||
|
||||
writeJSForAPI testApi (angular defAngularOptions) (www </> "angular" </> "api.js")
|
||||
|
||||
writeJSForAPI testApi axios (www </> "axios" </> "api.js")
|
||||
writeJSForAPI testApi (axios defAxiosOptions) (www </> "axios" </> "api.js")
|
||||
|
||||
writeServiceJS (www </> "angular" </> "api.service.js")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue