We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b48b615 commit ace6c19Copy full SHA for ace6c19
client/src/Try/API.purs
@@ -21,7 +21,6 @@ import Affjax.StatusCode (StatusCode(..))
21
import Control.Alt ((<|>))
22
import Control.Monad.Except (ExceptT(..))
23
import Data.Argonaut.Decode (class DecodeJson, decodeJson, (.:))
24
-import Data.Argonaut.Encode (encodeJson)
25
import Data.Either (Either(..))
26
import Data.Maybe (Maybe(..))
27
import Data.Traversable (traverse)
@@ -107,4 +106,4 @@ compile endpoint code = ExceptT $ AX.post AXRF.json (endpoint <> "/compile") req
107
106
Right { body } ->
108
pure $ Right $ decodeJson body
109
where
110
- requestBody = Just $ AXRB.Json $ encodeJson code
+ requestBody = Just $ AXRB.string code
0 commit comments