packages feed

reason-export-0.1.2.0: test/PositionDecoder.re

open PositionType;

let rec decodePosition = json =>
    
        json |> (Json.Decode.string
            |> Json.Decode.andThen
            ((x) => switch(x)
            {
                | "Beginning" => json => Beginning
                | "Middle" => json => Middle
                | "End" => json => End
                | _ => failwith("unknown constructor")}))