~ubuntu-branches/ubuntu/wily/agda/wily-proposed

« back to all changes in this revision

Viewing changes to src/full/Agda/TypeChecking/Monad/Open.hs

  • Committer: Package Import Robot
  • Author(s): Iain Lane, d5cf60f
  • Date: 2015-05-20 13:08:33 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20150520130833-cdcmhagwsouna237
Tags: 2.4.2.2-2
[d5cf60f] Depend on ${shlibs:Depends}, to get libc (& maybe other) deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
-- {-# LANGUAGE CPP #-}
2
2
 
3
3
module Agda.TypeChecking.Monad.Open
4
 
        ( makeOpen
5
 
        , makeClosed
6
 
        , getOpen
7
 
        , tryOpen
8
 
        ) where
 
4
        ( makeOpen
 
5
        , makeClosed
 
6
        , getOpen
 
7
        , tryOpen
 
8
        ) where
9
9
 
10
10
import Control.Applicative
11
11
import Control.Monad
12
 
import Control.Monad.Error
13
12
import Data.List
14
13
 
15
14
import Agda.TypeChecking.Substitute
17
16
 
18
17
import {-# SOURCE #-} Agda.TypeChecking.Monad.Context
19
18
 
 
19
import Agda.Utils.Except ( MonadError(catchError) )
 
20
 
20
21
-- | Create an open term in the current context.
21
22
makeOpen :: a -> TCM (Open a)
22
23
makeOpen x = do