git.iko.soy/rowtype-yoga/psfp
on 148366a help sign in
45 lines 923 B history raw
1module Shared.Models.Body where
3import Data.Maybe (Maybe)
5type CompileRequest
6 = { code ∷ String }
8-- type CompileResult
9-- = { result ∷ Array ErrorOrWarning
10-- , resultType :: String
11-- }
12type CompileResult
13 = { result ∷ Array ErrorOrWarning
14 , resultType ∷ String
15 }
17type RunResult
18 = { code ∷ Maybe Int, stdout ∷ String, stderr ∷ String }
20type Suggestion
21 = { replaceRange ∷ Position, replacement ∷ String }
23type Span
24 = { end ∷ Array Int
25 , name ∷ String
26 , start ∷ Array Int
27 }
29type Position
30 = { endColumn ∷ Int
31 , endLine ∷ Int
32 , startColumn ∷ Int
33 , startLine ∷ Int
34 }
36type ErrorOrWarning
37 = { allSpans ∷ Array Span
38 , errorCode ∷ String
39 , errorLink ∷ String
40 , filename ∷ String
41 , message ∷ String
42 , moduleName ∷ Maybe String
43 , position ∷ Position
44 , suggestion ∷ Maybe Suggestion
45 }