{
  "type" : "Source",
  "positions" : {
    "begin" : {
      "line" : 1,
      "column" : 1
    },
    "end" : {
      "line" : 26,
      "column" : 1
    }
  },
  "stats" : [ {
    "type" : "Defn.Class",
    "positions" : {
      "begin" : {
        "line" : 1,
        "column" : 1
      },
      "end" : {
        "line" : 4,
        "column" : 2
      }
    },
    "mods" : [ {
      "type" : "Mod.Abstract",
      "positions" : {
        "begin" : {
          "line" : 1,
          "column" : 1
        },
        "end" : {
          "line" : 1,
          "column" : 9
        }
      }
    } ],
    "name" : {
      "type" : "Type.Name",
      "positions" : {
        "begin" : {
          "line" : 1,
          "column" : 16
        },
        "end" : {
          "line" : 1,
          "column" : 22
        }
      },
      "value" : "Monoid"
    },
    "tparams" : [ {
      "type" : "Type.Param",
      "positions" : {
        "begin" : {
          "line" : 1,
          "column" : 23
        },
        "end" : {
          "line" : 1,
          "column" : 24
        }
      },
      "mods" : [ ],
      "name" : {
        "type" : "Type.Name",
        "positions" : {
          "begin" : {
            "line" : 1,
            "column" : 23
          },
          "end" : {
            "line" : 1,
            "column" : 24
          }
        },
        "value" : "A"
      },
      "tparams" : [ ],
      "tbounds" : {
        "type" : "Type.Bounds",
        "positions" : {
          "begin" : {
            "line" : 1,
            "column" : 24
          },
          "end" : {
            "line" : 1,
            "column" : 24
          }
        }
      },
      "vbounds" : [ ],
      "cbounds" : [ ]
    } ],
    "ctor" : {
      "type" : "Ctor.Primary",
      "positions" : {
        "begin" : {
          "line" : 1,
          "column" : 26
        },
        "end" : {
          "line" : 1,
          "column" : 26
        }
      },
      "mods" : [ ],
      "name" : {
        "type" : "Name.Anonymous",
        "positions" : {
          "begin" : {
            "line" : 1,
            "column" : 26
          },
          "end" : {
            "line" : 1,
            "column" : 26
          }
        },
        "value" : ""
      },
      "paramss" : [ ]
    },
    "templ" : {
      "type" : "Template",
      "positions" : {
        "begin" : {
          "line" : 1,
          "column" : 26
        },
        "end" : {
          "line" : 4,
          "column" : 2
        }
      },
      "early" : [ ],
      "inits" : [ ],
      "self" : {
        "type" : "Self",
        "positions" : {
          "begin" : {
            "line" : 2,
            "column" : 3
          },
          "end" : {
            "line" : 2,
            "column" : 3
          }
        },
        "name" : {
          "type" : "Name.Anonymous",
          "positions" : {
            "begin" : {
              "line" : 2,
              "column" : 3
            },
            "end" : {
              "line" : 2,
              "column" : 3
            }
          },
          "value" : ""
        }
      },
      "stats" : [ {
        "type" : "Decl.Def",
        "positions" : {
          "begin" : {
            "line" : 2,
            "column" : 3
          },
          "end" : {
            "line" : 2,
            "column" : 25
          }
        },
        "mods" : [ ],
        "name" : {
          "type" : "Term.Name",
          "positions" : {
            "begin" : {
              "line" : 2,
              "column" : 7
            },
            "end" : {
              "line" : 2,
              "column" : 10
            }
          },
          "value" : "add"
        },
        "tparams" : [ ],
        "paramss" : [ [ {
          "type" : "Term.Param",
          "positions" : {
            "begin" : {
              "line" : 2,
              "column" : 11
            },
            "end" : {
              "line" : 2,
              "column" : 15
            }
          },
          "mods" : [ ],
          "name" : {
            "type" : "Term.Name",
            "positions" : {
              "begin" : {
                "line" : 2,
                "column" : 11
              },
              "end" : {
                "line" : 2,
                "column" : 12
              }
            },
            "value" : "x"
          },
          "decltpe" : {
            "type" : "Type.Name",
            "positions" : {
              "begin" : {
                "line" : 2,
                "column" : 14
              },
              "end" : {
                "line" : 2,
                "column" : 15
              }
            },
            "value" : "A"
          }
        }, {
          "type" : "Term.Param",
          "positions" : {
            "begin" : {
              "line" : 2,
              "column" : 17
            },
            "end" : {
              "line" : 2,
              "column" : 21
            }
          },
          "mods" : [ ],
          "name" : {
            "type" : "Term.Name",
            "positions" : {
              "begin" : {
                "line" : 2,
                "column" : 17
              },
              "end" : {
                "line" : 2,
                "column" : 18
              }
            },
            "value" : "y"
          },
          "decltpe" : {
            "type" : "Type.Name",
            "positions" : {
              "begin" : {
                "line" : 2,
                "column" : 20
              },
              "end" : {
                "line" : 2,
                "column" : 21
              }
            },
            "value" : "A"
          }
        } ] ],
        "decltpe" : {
          "type" : "Type.Name",
          "positions" : {
            "begin" : {
              "line" : 2,
              "column" : 24
            },
            "end" : {
              "line" : 2,
              "column" : 25
            }
          },
          "value" : "A"
        }
      }, {
        "type" : "Decl.Def",
        "positions" : {
          "begin" : {
            "line" : 3,
            "column" : 3
          },
          "end" : {
            "line" : 3,
            "column" : 14
          }
        },
        "mods" : [ ],
        "name" : {
          "type" : "Term.Name",
          "positions" : {
            "begin" : {
              "line" : 3,
              "column" : 7
            },
            "end" : {
              "line" : 3,
              "column" : 11
            }
          },
          "value" : "unit"
        },
        "tparams" : [ ],
        "paramss" : [ ],
        "decltpe" : {
          "type" : "Type.Name",
          "positions" : {
            "begin" : {
              "line" : 3,
              "column" : 13
            },
            "end" : {
              "line" : 3,
              "column" : 14
            }
          },
          "value" : "A"
        }
      } ]
    }
  }, {
    "type" : "Defn.Object",
    "positions" : {
      "begin" : {
        "line" : 6,
        "column" : 1
      },
      "end" : {
        "line" : 25,
        "column" : 2
      }
    },
    "mods" : [ ],
    "name" : {
      "type" : "Term.Name",
      "positions" : {
        "begin" : {
          "line" : 6,
          "column" : 8
        },
        "end" : {
          "line" : 6,
          "column" : 20
        }
      },
      "value" : "ImplicitTest"
    },
    "templ" : {
      "type" : "Template",
      "positions" : {
        "begin" : {
          "line" : 6,
          "column" : 21
        },
        "end" : {
          "line" : 25,
          "column" : 2
        }
      },
      "early" : [ ],
      "inits" : [ ],
      "self" : {
        "type" : "Self",
        "positions" : {
          "begin" : {
            "line" : 7,
            "column" : 3
          },
          "end" : {
            "line" : 7,
            "column" : 3
          }
        },
        "name" : {
          "type" : "Name.Anonymous",
          "positions" : {
            "begin" : {
              "line" : 7,
              "column" : 3
            },
            "end" : {
              "line" : 7,
              "column" : 3
            }
          },
          "value" : ""
        }
      },
      "stats" : [ {
        "type" : "Defn.Val",
        "positions" : {
          "begin" : {
            "line" : 7,
            "column" : 3
          },
          "end" : {
            "line" : 10,
            "column" : 4
          }
        },
        "mods" : [ {
          "type" : "Mod.Implicit",
          "positions" : {
            "begin" : {
              "line" : 7,
              "column" : 3
            },
            "end" : {
              "line" : 7,
              "column" : 11
            }
          }
        } ],
        "pats" : [ {
          "type" : "Pat.Var",
          "positions" : {
            "begin" : {
              "line" : 7,
              "column" : 16
            },
            "end" : {
              "line" : 7,
              "column" : 28
            }
          },
          "name" : {
            "type" : "Term.Name",
            "positions" : {
              "begin" : {
                "line" : 7,
                "column" : 16
              },
              "end" : {
                "line" : 7,
                "column" : 28
              }
            },
            "value" : "stringMonoid"
          }
        } ],
        "decltpe" : {
          "type" : "Type.Apply",
          "positions" : {
            "begin" : {
              "line" : 7,
              "column" : 30
            },
            "end" : {
              "line" : 7,
              "column" : 44
            }
          },
          "tpe" : {
            "type" : "Type.Name",
            "positions" : {
              "begin" : {
                "line" : 7,
                "column" : 30
              },
              "end" : {
                "line" : 7,
                "column" : 36
              }
            },
            "value" : "Monoid"
          },
          "args" : [ {
            "type" : "Type.Name",
            "positions" : {
              "begin" : {
                "line" : 7,
                "column" : 37
              },
              "end" : {
                "line" : 7,
                "column" : 43
              }
            },
            "value" : "String"
          } ]
        },
        "rhs" : {
          "type" : "Term.NewAnonymous",
          "positions" : {
            "begin" : {
              "line" : 7,
              "column" : 47
            },
            "end" : {
              "line" : 10,
              "column" : 4
            }
          },
          "templ" : {
            "type" : "Template",
            "positions" : {
              "begin" : {
                "line" : 7,
                "column" : 51
              },
              "end" : {
                "line" : 10,
                "column" : 4
              }
            },
            "early" : [ ],
            "inits" : [ {
              "type" : "init",
              "tpe" : {
                "type" : "Type.Apply",
                "positions" : {
                  "begin" : {
                    "line" : 7,
                    "column" : 51
                  },
                  "end" : {
                    "line" : 7,
                    "column" : 65
                  }
                },
                "tpe" : {
                  "type" : "Type.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 7,
                      "column" : 51
                    },
                    "end" : {
                      "line" : 7,
                      "column" : 57
                    }
                  },
                  "value" : "Monoid"
                },
                "args" : [ {
                  "type" : "Type.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 7,
                      "column" : 58
                    },
                    "end" : {
                      "line" : 7,
                      "column" : 64
                    }
                  },
                  "value" : "String"
                } ]
              },
              "name" : {
                "type" : "Name.Anonymous",
                "positions" : {
                  "begin" : {
                    "line" : 7,
                    "column" : 66
                  },
                  "end" : {
                    "line" : 7,
                    "column" : 66
                  }
                },
                "value" : ""
              },
              "argss" : [ ]
            } ],
            "self" : {
              "type" : "Self",
              "positions" : {
                "begin" : {
                  "line" : 8,
                  "column" : 5
                },
                "end" : {
                  "line" : 8,
                  "column" : 5
                }
              },
              "name" : {
                "type" : "Name.Anonymous",
                "positions" : {
                  "begin" : {
                    "line" : 8,
                    "column" : 5
                  },
                  "end" : {
                    "line" : 8,
                    "column" : 5
                  }
                },
                "value" : ""
              }
            },
            "stats" : [ {
              "type" : "Defn.Def",
              "positions" : {
                "begin" : {
                  "line" : 8,
                  "column" : 5
                },
                "end" : {
                  "line" : 8,
                  "column" : 55
                }
              },
              "mods" : [ ],
              "name" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 8,
                    "column" : 9
                  },
                  "end" : {
                    "line" : 8,
                    "column" : 12
                  }
                },
                "value" : "add"
              },
              "tparams" : [ ],
              "paramss" : [ [ {
                "type" : "Term.Param",
                "positions" : {
                  "begin" : {
                    "line" : 8,
                    "column" : 13
                  },
                  "end" : {
                    "line" : 8,
                    "column" : 22
                  }
                },
                "mods" : [ ],
                "name" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 8,
                      "column" : 13
                    },
                    "end" : {
                      "line" : 8,
                      "column" : 14
                    }
                  },
                  "value" : "x"
                },
                "decltpe" : {
                  "type" : "Type.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 8,
                      "column" : 16
                    },
                    "end" : {
                      "line" : 8,
                      "column" : 22
                    }
                  },
                  "value" : "String"
                }
              }, {
                "type" : "Term.Param",
                "positions" : {
                  "begin" : {
                    "line" : 8,
                    "column" : 24
                  },
                  "end" : {
                    "line" : 8,
                    "column" : 33
                  }
                },
                "mods" : [ ],
                "name" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 8,
                      "column" : 24
                    },
                    "end" : {
                      "line" : 8,
                      "column" : 25
                    }
                  },
                  "value" : "y"
                },
                "decltpe" : {
                  "type" : "Type.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 8,
                      "column" : 27
                    },
                    "end" : {
                      "line" : 8,
                      "column" : 33
                    }
                  },
                  "value" : "String"
                }
              } ] ],
              "decltpe" : {
                "type" : "Type.Name",
                "positions" : {
                  "begin" : {
                    "line" : 8,
                    "column" : 36
                  },
                  "end" : {
                    "line" : 8,
                    "column" : 42
                  }
                },
                "value" : "String"
              },
              "body" : {
                "type" : "Term.ApplyInfix",
                "positions" : {
                  "begin" : {
                    "line" : 8,
                    "column" : 45
                  },
                  "end" : {
                    "line" : 8,
                    "column" : 55
                  }
                },
                "lhs" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 8,
                      "column" : 45
                    },
                    "end" : {
                      "line" : 8,
                      "column" : 46
                    }
                  },
                  "value" : "x"
                },
                "op" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 8,
                      "column" : 47
                    },
                    "end" : {
                      "line" : 8,
                      "column" : 53
                    }
                  },
                  "value" : "concat"
                },
                "targs" : [ ],
                "args" : [ {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 8,
                      "column" : 54
                    },
                    "end" : {
                      "line" : 8,
                      "column" : 55
                    }
                  },
                  "value" : "y"
                } ]
              }
            }, {
              "type" : "Defn.Def",
              "positions" : {
                "begin" : {
                  "line" : 9,
                  "column" : 5
                },
                "end" : {
                  "line" : 9,
                  "column" : 26
                }
              },
              "mods" : [ ],
              "name" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 9,
                    "column" : 9
                  },
                  "end" : {
                    "line" : 9,
                    "column" : 13
                  }
                },
                "value" : "unit"
              },
              "tparams" : [ ],
              "paramss" : [ ],
              "decltpe" : {
                "type" : "Type.Name",
                "positions" : {
                  "begin" : {
                    "line" : 9,
                    "column" : 15
                  },
                  "end" : {
                    "line" : 9,
                    "column" : 21
                  }
                },
                "value" : "String"
              },
              "body" : {
                "type" : "Lit.String",
                "positions" : {
                  "begin" : {
                    "line" : 9,
                    "column" : 24
                  },
                  "end" : {
                    "line" : 9,
                    "column" : 26
                  }
                },
                "value" : "",
                "syntax" : "\"\""
              }
            } ]
          }
        }
      }, {
        "type" : "Defn.Val",
        "positions" : {
          "begin" : {
            "line" : 12,
            "column" : 3
          },
          "end" : {
            "line" : 15,
            "column" : 4
          }
        },
        "mods" : [ {
          "type" : "Mod.Implicit",
          "positions" : {
            "begin" : {
              "line" : 12,
              "column" : 3
            },
            "end" : {
              "line" : 12,
              "column" : 11
            }
          }
        } ],
        "pats" : [ {
          "type" : "Pat.Var",
          "positions" : {
            "begin" : {
              "line" : 12,
              "column" : 16
            },
            "end" : {
              "line" : 12,
              "column" : 25
            }
          },
          "name" : {
            "type" : "Term.Name",
            "positions" : {
              "begin" : {
                "line" : 12,
                "column" : 16
              },
              "end" : {
                "line" : 12,
                "column" : 25
              }
            },
            "value" : "intMonoid"
          }
        } ],
        "decltpe" : {
          "type" : "Type.Apply",
          "positions" : {
            "begin" : {
              "line" : 12,
              "column" : 27
            },
            "end" : {
              "line" : 12,
              "column" : 38
            }
          },
          "tpe" : {
            "type" : "Type.Name",
            "positions" : {
              "begin" : {
                "line" : 12,
                "column" : 27
              },
              "end" : {
                "line" : 12,
                "column" : 33
              }
            },
            "value" : "Monoid"
          },
          "args" : [ {
            "type" : "Type.Name",
            "positions" : {
              "begin" : {
                "line" : 12,
                "column" : 34
              },
              "end" : {
                "line" : 12,
                "column" : 37
              }
            },
            "value" : "Int"
          } ]
        },
        "rhs" : {
          "type" : "Term.NewAnonymous",
          "positions" : {
            "begin" : {
              "line" : 12,
              "column" : 41
            },
            "end" : {
              "line" : 15,
              "column" : 4
            }
          },
          "templ" : {
            "type" : "Template",
            "positions" : {
              "begin" : {
                "line" : 12,
                "column" : 45
              },
              "end" : {
                "line" : 15,
                "column" : 4
              }
            },
            "early" : [ ],
            "inits" : [ {
              "type" : "init",
              "tpe" : {
                "type" : "Type.Apply",
                "positions" : {
                  "begin" : {
                    "line" : 12,
                    "column" : 45
                  },
                  "end" : {
                    "line" : 12,
                    "column" : 56
                  }
                },
                "tpe" : {
                  "type" : "Type.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 12,
                      "column" : 45
                    },
                    "end" : {
                      "line" : 12,
                      "column" : 51
                    }
                  },
                  "value" : "Monoid"
                },
                "args" : [ {
                  "type" : "Type.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 12,
                      "column" : 52
                    },
                    "end" : {
                      "line" : 12,
                      "column" : 55
                    }
                  },
                  "value" : "Int"
                } ]
              },
              "name" : {
                "type" : "Name.Anonymous",
                "positions" : {
                  "begin" : {
                    "line" : 12,
                    "column" : 57
                  },
                  "end" : {
                    "line" : 12,
                    "column" : 57
                  }
                },
                "value" : ""
              },
              "argss" : [ ]
            } ],
            "self" : {
              "type" : "Self",
              "positions" : {
                "begin" : {
                  "line" : 13,
                  "column" : 5
                },
                "end" : {
                  "line" : 13,
                  "column" : 5
                }
              },
              "name" : {
                "type" : "Name.Anonymous",
                "positions" : {
                  "begin" : {
                    "line" : 13,
                    "column" : 5
                  },
                  "end" : {
                    "line" : 13,
                    "column" : 5
                  }
                },
                "value" : ""
              }
            },
            "stats" : [ {
              "type" : "Defn.Def",
              "positions" : {
                "begin" : {
                  "line" : 13,
                  "column" : 5
                },
                "end" : {
                  "line" : 13,
                  "column" : 41
                }
              },
              "mods" : [ ],
              "name" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 13,
                    "column" : 9
                  },
                  "end" : {
                    "line" : 13,
                    "column" : 12
                  }
                },
                "value" : "add"
              },
              "tparams" : [ ],
              "paramss" : [ [ {
                "type" : "Term.Param",
                "positions" : {
                  "begin" : {
                    "line" : 13,
                    "column" : 13
                  },
                  "end" : {
                    "line" : 13,
                    "column" : 19
                  }
                },
                "mods" : [ ],
                "name" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 13,
                      "column" : 13
                    },
                    "end" : {
                      "line" : 13,
                      "column" : 14
                    }
                  },
                  "value" : "x"
                },
                "decltpe" : {
                  "type" : "Type.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 13,
                      "column" : 16
                    },
                    "end" : {
                      "line" : 13,
                      "column" : 19
                    }
                  },
                  "value" : "Int"
                }
              }, {
                "type" : "Term.Param",
                "positions" : {
                  "begin" : {
                    "line" : 13,
                    "column" : 21
                  },
                  "end" : {
                    "line" : 13,
                    "column" : 27
                  }
                },
                "mods" : [ ],
                "name" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 13,
                      "column" : 21
                    },
                    "end" : {
                      "line" : 13,
                      "column" : 22
                    }
                  },
                  "value" : "y"
                },
                "decltpe" : {
                  "type" : "Type.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 13,
                      "column" : 24
                    },
                    "end" : {
                      "line" : 13,
                      "column" : 27
                    }
                  },
                  "value" : "Int"
                }
              } ] ],
              "decltpe" : {
                "type" : "Type.Name",
                "positions" : {
                  "begin" : {
                    "line" : 13,
                    "column" : 30
                  },
                  "end" : {
                    "line" : 13,
                    "column" : 33
                  }
                },
                "value" : "Int"
              },
              "body" : {
                "type" : "Term.ApplyInfix",
                "positions" : {
                  "begin" : {
                    "line" : 13,
                    "column" : 36
                  },
                  "end" : {
                    "line" : 13,
                    "column" : 41
                  }
                },
                "lhs" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 13,
                      "column" : 36
                    },
                    "end" : {
                      "line" : 13,
                      "column" : 37
                    }
                  },
                  "value" : "x"
                },
                "op" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 13,
                      "column" : 38
                    },
                    "end" : {
                      "line" : 13,
                      "column" : 39
                    }
                  },
                  "value" : "+"
                },
                "targs" : [ ],
                "args" : [ {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 13,
                      "column" : 40
                    },
                    "end" : {
                      "line" : 13,
                      "column" : 41
                    }
                  },
                  "value" : "y"
                } ]
              }
            }, {
              "type" : "Defn.Def",
              "positions" : {
                "begin" : {
                  "line" : 14,
                  "column" : 5
                },
                "end" : {
                  "line" : 14,
                  "column" : 22
                }
              },
              "mods" : [ ],
              "name" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 14,
                    "column" : 9
                  },
                  "end" : {
                    "line" : 14,
                    "column" : 13
                  }
                },
                "value" : "unit"
              },
              "tparams" : [ ],
              "paramss" : [ ],
              "decltpe" : {
                "type" : "Type.Name",
                "positions" : {
                  "begin" : {
                    "line" : 14,
                    "column" : 15
                  },
                  "end" : {
                    "line" : 14,
                    "column" : 18
                  }
                },
                "value" : "Int"
              },
              "body" : {
                "type" : "Lit.Int",
                "positions" : {
                  "begin" : {
                    "line" : 14,
                    "column" : 21
                  },
                  "end" : {
                    "line" : 14,
                    "column" : 22
                  }
                },
                "value" : 0,
                "syntax" : "0"
              }
            } ]
          }
        }
      }, {
        "type" : "Defn.Def",
        "positions" : {
          "begin" : {
            "line" : 17,
            "column" : 3
          },
          "end" : {
            "line" : 19,
            "column" : 38
          }
        },
        "mods" : [ ],
        "name" : {
          "type" : "Term.Name",
          "positions" : {
            "begin" : {
              "line" : 17,
              "column" : 7
            },
            "end" : {
              "line" : 17,
              "column" : 10
            }
          },
          "value" : "sum"
        },
        "tparams" : [ {
          "type" : "Type.Param",
          "positions" : {
            "begin" : {
              "line" : 17,
              "column" : 11
            },
            "end" : {
              "line" : 17,
              "column" : 12
            }
          },
          "mods" : [ ],
          "name" : {
            "type" : "Type.Name",
            "positions" : {
              "begin" : {
                "line" : 17,
                "column" : 11
              },
              "end" : {
                "line" : 17,
                "column" : 12
              }
            },
            "value" : "A"
          },
          "tparams" : [ ],
          "tbounds" : {
            "type" : "Type.Bounds",
            "positions" : {
              "begin" : {
                "line" : 17,
                "column" : 12
              },
              "end" : {
                "line" : 17,
                "column" : 12
              }
            }
          },
          "vbounds" : [ ],
          "cbounds" : [ ]
        } ],
        "paramss" : [ [ {
          "type" : "Term.Param",
          "positions" : {
            "begin" : {
              "line" : 17,
              "column" : 14
            },
            "end" : {
              "line" : 17,
              "column" : 25
            }
          },
          "mods" : [ ],
          "name" : {
            "type" : "Term.Name",
            "positions" : {
              "begin" : {
                "line" : 17,
                "column" : 14
              },
              "end" : {
                "line" : 17,
                "column" : 16
              }
            },
            "value" : "xs"
          },
          "decltpe" : {
            "type" : "Type.Apply",
            "positions" : {
              "begin" : {
                "line" : 17,
                "column" : 18
              },
              "end" : {
                "line" : 17,
                "column" : 25
              }
            },
            "tpe" : {
              "type" : "Type.Name",
              "positions" : {
                "begin" : {
                  "line" : 17,
                  "column" : 18
                },
                "end" : {
                  "line" : 17,
                  "column" : 22
                }
              },
              "value" : "List"
            },
            "args" : [ {
              "type" : "Type.Name",
              "positions" : {
                "begin" : {
                  "line" : 17,
                  "column" : 23
                },
                "end" : {
                  "line" : 17,
                  "column" : 24
                }
              },
              "value" : "A"
            } ]
          }
        } ], [ {
          "type" : "Term.Param",
          "positions" : {
            "begin" : {
              "line" : 17,
              "column" : 36
            },
            "end" : {
              "line" : 17,
              "column" : 48
            }
          },
          "mods" : [ {
            "type" : "Mod.Implicit",
            "positions" : {
              "begin" : {
                "line" : 17,
                "column" : 36
              },
              "end" : {
                "line" : 17,
                "column" : 36
              }
            }
          } ],
          "name" : {
            "type" : "Term.Name",
            "positions" : {
              "begin" : {
                "line" : 17,
                "column" : 36
              },
              "end" : {
                "line" : 17,
                "column" : 37
              }
            },
            "value" : "m"
          },
          "decltpe" : {
            "type" : "Type.Apply",
            "positions" : {
              "begin" : {
                "line" : 17,
                "column" : 39
              },
              "end" : {
                "line" : 17,
                "column" : 48
              }
            },
            "tpe" : {
              "type" : "Type.Name",
              "positions" : {
                "begin" : {
                  "line" : 17,
                  "column" : 39
                },
                "end" : {
                  "line" : 17,
                  "column" : 45
                }
              },
              "value" : "Monoid"
            },
            "args" : [ {
              "type" : "Type.Name",
              "positions" : {
                "begin" : {
                  "line" : 17,
                  "column" : 46
                },
                "end" : {
                  "line" : 17,
                  "column" : 47
                }
              },
              "value" : "A"
            } ]
          }
        } ] ],
        "decltpe" : {
          "type" : "Type.Name",
          "positions" : {
            "begin" : {
              "line" : 17,
              "column" : 51
            },
            "end" : {
              "line" : 17,
              "column" : 52
            }
          },
          "value" : "A"
        },
        "body" : {
          "type" : "Term.If",
          "positions" : {
            "begin" : {
              "line" : 18,
              "column" : 5
            },
            "end" : {
              "line" : 19,
              "column" : 38
            }
          },
          "cond" : {
            "type" : "Term.Select",
            "positions" : {
              "begin" : {
                "line" : 18,
                "column" : 9
              },
              "end" : {
                "line" : 18,
                "column" : 19
              }
            },
            "qual" : {
              "type" : "Term.Name",
              "positions" : {
                "begin" : {
                  "line" : 18,
                  "column" : 9
                },
                "end" : {
                  "line" : 18,
                  "column" : 11
                }
              },
              "value" : "xs"
            },
            "name" : {
              "type" : "Term.Name",
              "positions" : {
                "begin" : {
                  "line" : 18,
                  "column" : 12
                },
                "end" : {
                  "line" : 18,
                  "column" : 19
                }
              },
              "value" : "isEmpty"
            }
          },
          "thenp" : {
            "type" : "Term.Select",
            "positions" : {
              "begin" : {
                "line" : 18,
                "column" : 21
              },
              "end" : {
                "line" : 18,
                "column" : 27
              }
            },
            "qual" : {
              "type" : "Term.Name",
              "positions" : {
                "begin" : {
                  "line" : 18,
                  "column" : 21
                },
                "end" : {
                  "line" : 18,
                  "column" : 22
                }
              },
              "value" : "m"
            },
            "name" : {
              "type" : "Term.Name",
              "positions" : {
                "begin" : {
                  "line" : 18,
                  "column" : 23
                },
                "end" : {
                  "line" : 18,
                  "column" : 27
                }
              },
              "value" : "unit"
            }
          },
          "elsep" : {
            "type" : "Term.Apply",
            "positions" : {
              "begin" : {
                "line" : 19,
                "column" : 10
              },
              "end" : {
                "line" : 19,
                "column" : 38
              }
            },
            "fun" : {
              "type" : "Term.Select",
              "positions" : {
                "begin" : {
                  "line" : 19,
                  "column" : 10
                },
                "end" : {
                  "line" : 19,
                  "column" : 15
                }
              },
              "qual" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 19,
                    "column" : 10
                  },
                  "end" : {
                    "line" : 19,
                    "column" : 11
                  }
                },
                "value" : "m"
              },
              "name" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 19,
                    "column" : 12
                  },
                  "end" : {
                    "line" : 19,
                    "column" : 15
                  }
                },
                "value" : "add"
              }
            },
            "args" : [ {
              "type" : "Term.Select",
              "positions" : {
                "begin" : {
                  "line" : 19,
                  "column" : 16
                },
                "end" : {
                  "line" : 19,
                  "column" : 23
                }
              },
              "qual" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 19,
                    "column" : 16
                  },
                  "end" : {
                    "line" : 19,
                    "column" : 18
                  }
                },
                "value" : "xs"
              },
              "name" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 19,
                    "column" : 19
                  },
                  "end" : {
                    "line" : 19,
                    "column" : 23
                  }
                },
                "value" : "head"
              }
            }, {
              "type" : "Term.Apply",
              "positions" : {
                "begin" : {
                  "line" : 19,
                  "column" : 25
                },
                "end" : {
                  "line" : 19,
                  "column" : 37
                }
              },
              "fun" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 19,
                    "column" : 25
                  },
                  "end" : {
                    "line" : 19,
                    "column" : 28
                  }
                },
                "value" : "sum"
              },
              "args" : [ {
                "type" : "Term.Select",
                "positions" : {
                  "begin" : {
                    "line" : 19,
                    "column" : 29
                  },
                  "end" : {
                    "line" : 19,
                    "column" : 36
                  }
                },
                "qual" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 19,
                      "column" : 29
                    },
                    "end" : {
                      "line" : 19,
                      "column" : 31
                    }
                  },
                  "value" : "xs"
                },
                "name" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 19,
                      "column" : 32
                    },
                    "end" : {
                      "line" : 19,
                      "column" : 36
                    }
                  },
                  "value" : "tail"
                }
              } ]
            } ]
          }
        }
      }, {
        "type" : "Defn.Def",
        "positions" : {
          "begin" : {
            "line" : 21,
            "column" : 3
          },
          "end" : {
            "line" : 24,
            "column" : 4
          }
        },
        "mods" : [ ],
        "name" : {
          "type" : "Term.Name",
          "positions" : {
            "begin" : {
              "line" : 21,
              "column" : 7
            },
            "end" : {
              "line" : 21,
              "column" : 11
            }
          },
          "value" : "main"
        },
        "tparams" : [ ],
        "paramss" : [ [ {
          "type" : "Term.Param",
          "positions" : {
            "begin" : {
              "line" : 21,
              "column" : 12
            },
            "end" : {
              "line" : 21,
              "column" : 31
            }
          },
          "mods" : [ ],
          "name" : {
            "type" : "Term.Name",
            "positions" : {
              "begin" : {
                "line" : 21,
                "column" : 12
              },
              "end" : {
                "line" : 21,
                "column" : 16
              }
            },
            "value" : "args"
          },
          "decltpe" : {
            "type" : "Type.Apply",
            "positions" : {
              "begin" : {
                "line" : 21,
                "column" : 18
              },
              "end" : {
                "line" : 21,
                "column" : 31
              }
            },
            "tpe" : {
              "type" : "Type.Name",
              "positions" : {
                "begin" : {
                  "line" : 21,
                  "column" : 18
                },
                "end" : {
                  "line" : 21,
                  "column" : 23
                }
              },
              "value" : "Array"
            },
            "args" : [ {
              "type" : "Type.Name",
              "positions" : {
                "begin" : {
                  "line" : 21,
                  "column" : 24
                },
                "end" : {
                  "line" : 21,
                  "column" : 30
                }
              },
              "value" : "String"
            } ]
          }
        } ] ],
        "decltpe" : {
          "type" : "Type.Name",
          "positions" : {
            "begin" : {
              "line" : 21,
              "column" : 34
            },
            "end" : {
              "line" : 21,
              "column" : 38
            }
          },
          "value" : "Unit"
        },
        "body" : {
          "type" : "Term.Block",
          "positions" : {
            "begin" : {
              "line" : 21,
              "column" : 41
            },
            "end" : {
              "line" : 24,
              "column" : 4
            }
          },
          "stats" : [ {
            "type" : "Term.Apply",
            "positions" : {
              "begin" : {
                "line" : 22,
                "column" : 5
              },
              "end" : {
                "line" : 22,
                "column" : 32
              }
            },
            "fun" : {
              "type" : "Term.Name",
              "positions" : {
                "begin" : {
                  "line" : 22,
                  "column" : 5
                },
                "end" : {
                  "line" : 22,
                  "column" : 12
                }
              },
              "value" : "println"
            },
            "args" : [ {
              "type" : "Term.Apply",
              "positions" : {
                "begin" : {
                  "line" : 22,
                  "column" : 13
                },
                "end" : {
                  "line" : 22,
                  "column" : 31
                }
              },
              "fun" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 22,
                    "column" : 13
                  },
                  "end" : {
                    "line" : 22,
                    "column" : 16
                  }
                },
                "value" : "sum"
              },
              "args" : [ {
                "type" : "Term.Apply",
                "positions" : {
                  "begin" : {
                    "line" : 22,
                    "column" : 17
                  },
                  "end" : {
                    "line" : 22,
                    "column" : 30
                  }
                },
                "fun" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 22,
                      "column" : 17
                    },
                    "end" : {
                      "line" : 22,
                      "column" : 21
                    }
                  },
                  "value" : "List"
                },
                "args" : [ {
                  "type" : "Lit.Int",
                  "positions" : {
                    "begin" : {
                      "line" : 22,
                      "column" : 22
                    },
                    "end" : {
                      "line" : 22,
                      "column" : 23
                    }
                  },
                  "value" : 1,
                  "syntax" : "1"
                }, {
                  "type" : "Lit.Int",
                  "positions" : {
                    "begin" : {
                      "line" : 22,
                      "column" : 25
                    },
                    "end" : {
                      "line" : 22,
                      "column" : 26
                    }
                  },
                  "value" : 2,
                  "syntax" : "2"
                }, {
                  "type" : "Lit.Int",
                  "positions" : {
                    "begin" : {
                      "line" : 22,
                      "column" : 28
                    },
                    "end" : {
                      "line" : 22,
                      "column" : 29
                    }
                  },
                  "value" : 3,
                  "syntax" : "3"
                } ]
              } ]
            } ]
          }, {
            "type" : "Term.Apply",
            "positions" : {
              "begin" : {
                "line" : 23,
                "column" : 5
              },
              "end" : {
                "line" : 23,
                "column" : 38
              }
            },
            "fun" : {
              "type" : "Term.Name",
              "positions" : {
                "begin" : {
                  "line" : 23,
                  "column" : 5
                },
                "end" : {
                  "line" : 23,
                  "column" : 12
                }
              },
              "value" : "println"
            },
            "args" : [ {
              "type" : "Term.Apply",
              "positions" : {
                "begin" : {
                  "line" : 23,
                  "column" : 13
                },
                "end" : {
                  "line" : 23,
                  "column" : 37
                }
              },
              "fun" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 23,
                    "column" : 13
                  },
                  "end" : {
                    "line" : 23,
                    "column" : 16
                  }
                },
                "value" : "sum"
              },
              "args" : [ {
                "type" : "Term.Apply",
                "positions" : {
                  "begin" : {
                    "line" : 23,
                    "column" : 17
                  },
                  "end" : {
                    "line" : 23,
                    "column" : 36
                  }
                },
                "fun" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 23,
                      "column" : 17
                    },
                    "end" : {
                      "line" : 23,
                      "column" : 21
                    }
                  },
                  "value" : "List"
                },
                "args" : [ {
                  "type" : "Lit.String",
                  "positions" : {
                    "begin" : {
                      "line" : 23,
                      "column" : 22
                    },
                    "end" : {
                      "line" : 23,
                      "column" : 25
                    }
                  },
                  "value" : "a",
                  "syntax" : "\"a\""
                }, {
                  "type" : "Lit.String",
                  "positions" : {
                    "begin" : {
                      "line" : 23,
                      "column" : 27
                    },
                    "end" : {
                      "line" : 23,
                      "column" : 30
                    }
                  },
                  "value" : "b",
                  "syntax" : "\"b\""
                }, {
                  "type" : "Lit.String",
                  "positions" : {
                    "begin" : {
                      "line" : 23,
                      "column" : 32
                    },
                    "end" : {
                      "line" : 23,
                      "column" : 35
                    }
                  },
                  "value" : "c",
                  "syntax" : "\"c\""
                } ]
              } ]
            } ]
          } ]
        }
      } ]
    }
  } ]
}
