Write a basic view function. Without styling, it's impossible to see.
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
module Go.Decoders exposing (..)
|
||||
import Go.Types exposing (..)
|
||||
import Go.Util exposing (pair)
|
||||
import Json.Decode as Decode
|
||||
import Json.Decode.Pipeline exposing (decode, required)
|
||||
|
||||
pair : a -> b -> (a, b)
|
||||
pair a1 a2 = (a1, a2)
|
||||
|
||||
decodeIndex : Decode.Decoder Index
|
||||
decodeIndex = decode pair
|
||||
|> required "x" Decode.int
|
||||
|
||||
Reference in New Issue
Block a user