packages feed

tilia-0.2.0.0: corpora/vendored/cpp/macro/macro-above-a-pragma-in-a-class.hs

{-# LANGUAGE CPP #-}

-- A use above a pragma at its indentation stands for a member of the class,
-- as the pragma is no comment but code.
module Solver.Measure where

#define SIGNATURE(x) x

class Measure a where
    size :: a -> Int
    SIGNATURE(weight :: a -> Int)
    {-# MINIMAL size #-}

total :: Int
total = 0