Skip to content
Snippets Groups Projects
Commit 2abbfca4 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1997-12-19 15:07:35 by simonm]

add test for getWorkerIdAndCons bug.
parent 7f0f325c
No related merge requests found
......@@ -2,6 +2,8 @@ TOP = ../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/should_compile.mk
HC_OPTS += -noC -O -dcore-lint
SRC_HC_OPTS += -noC -O -dcore-lint
str001_HC_OPTS = -hi
include $(TOP)/mk/target.mk
module ShouldSucceed where
{-# OPTIONS -O #-}
newtype Num a => Point2 a = Point2 (a,a)
area2 :: Num a => Point2 a -> Point2 a -> Point2 a -> a
area2 (Point2 (px,py)) (Point2 (qx,qy)) (Point2 (rx,ry))
= (px-qx) * (py-ry) - (py-qy) * (px-rx)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment