Skip to content

Commit ace6c19

Browse files
Use string body instead of Json (#217)
1 parent b48b615 commit ace6c19

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/src/Try/API.purs

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import Affjax.StatusCode (StatusCode(..))
2121
import Control.Alt ((<|>))
2222
import Control.Monad.Except (ExceptT(..))
2323
import Data.Argonaut.Decode (class DecodeJson, decodeJson, (.:))
24-
import Data.Argonaut.Encode (encodeJson)
2524
import Data.Either (Either(..))
2625
import Data.Maybe (Maybe(..))
2726
import Data.Traversable (traverse)
@@ -107,4 +106,4 @@ compile endpoint code = ExceptT $ AX.post AXRF.json (endpoint <> "/compile") req
107106
Right { body } ->
108107
pure $ Right $ decodeJson body
109108
where
110-
requestBody = Just $ AXRB.Json $ encodeJson code
109+
requestBody = Just $ AXRB.string code

0 commit comments

Comments
 (0)