Skip to content
This repository has been archived by the owner on Jul 11, 2021. It is now read-only.

Commit

Permalink
Small compilation fixes
Browse files Browse the repository at this point in the history
Hopefully addresses github #79
  • Loading branch information
Nathaniel Wesley Filardo committed Mar 11, 2015
1 parent 4326e64 commit f75282a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Dyna/Analysis/Mode/Execution/Functions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE AllowAmbiguousTypes #-} -- XXX doCall
{-# OPTIONS_GHC -Wall #-}

module Dyna.Analysis.Mode.Execution.Functions (
Expand Down
7 changes: 6 additions & 1 deletion src/Dyna/Analysis/Mode/Execution/NamedInst.hs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,12 @@ nLeqGLB, nSubGLB :: forall f . (Ord f) => NIX f -> NIX f -> NIX f
nLeqGLB (NIX l) (NIX r) = NIX $ autMerge ctxUniq (bendImpl iLeqGLB_) l r
nSubGLB (NIX l) (NIX r) = NIX $ autMerge (\_ _ -> ()) go l r
where
go lsml lsmr merge () = iSubGLB_ (flip (lsml ())) (lsmr ()) (merge ())
go :: forall m x y z . (Monad m)
=> (() -> x -> NonRec (InstF f) -> m z)
-> (() -> NonRec (InstF f) -> y -> m z)
-> (() -> x -> y -> m z)
-> () -> InstF f x -> InstF f y -> m (InstF f z)
go lsml lsmr merge () = iSubGLB_ (\x y -> lsml () y x) (lsmr ()) (merge ())

nLeqGLBRD, nLeqGLBRL :: (Ord f) => NIX f -> NIX f -> Either UnifFail (NIX f)
nLeqGLBRD (NIX l) (NIX r) = fmap NIX $ autPMerge ctxUniq (bendImpl iLeqGLBRD_) l r
Expand Down

0 comments on commit f75282a

Please sign in to comment.