This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-@ LIQUID "--no-termination" @-} | |
{-@ LIQUID "--reflection" @-} | |
{-@ LIQUID "--no-adt" @-} | |
{- LIQUID "--diff" @-} | |
{-@ LIQUID "--ple" @-} | |
module FingerTree where | |
import Language.Haskell.Liquid.ProofCombinators |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE ViewPatterns #-} | |
module InTex where | |
import Text.Pandoc.JSON | |
import Text.Pandoc | |
import Data.List | |
main :: IO () | |
main = toJSONFilter readFootnotes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module AVL where | |
{-@ data Tree [ht] = Nil | Tree (x::Int) (l::Tree) (r::Tree) @-} | |
data Tree = Nil | Tree Int Tree Tree | |
{-@ height :: t:Tree -> {v:Int | v = ht t} @-} | |
height :: Tree -> Int | |
height Nil = 0 | |
height (Tree _ l r) = (if height l > height r then 1 + height l else 1 + height r) |