git.iko.soy/typeable/servant
on master help sign in
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

commita8e1315ee7e1ebc67578ece62b5c226516570640 authorJoseph Kachmar <joseph.kachmar@wework.com> dateTue 5 Jul 2016, 11:34 (10 years ago) parent5effdfd
1 file changed+2−1
servant-js/examples/counter.hs+2−1
servant-js/examples/counter.hs+2−1
@@ -1,6 +1,7 @@
11{-# LANGUAGE DataKinds #-}
22{-# LANGUAGE DeriveGeneric #-}
33{-# LANGUAGE GeneralizedNewtypeDeriving #-}
4+{-# LANGUAGE OverloadedStrings #-}
45{-# LANGUAGE TypeOperators #-}
56
67import Control.Concurrent.STM
@@ -92,7 +93,7 @@ main = do
9293
9394 writeJSForAPI testApi (angular defAngularOptions) (www </> "angular" </> "api.js")
9495
95− writeJSForAPI testApi axios (www </> "axios" </> "api.js")
96+ writeJSForAPI testApi (axios defAxiosOptions) (www </> "axios" </> "api.js")
9697
9798 writeServiceJS (www </> "angular" </> "api.service.js")
9899