-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ResumeKind to separate module to fix dependencies
- Loading branch information
Showing
6 changed files
with
42 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
----------------------------------------------------------------------------- | ||
-- Copyright 2018 Microsoft Corporation. | ||
-- | ||
-- This is free software; you can redistribute it and/or modify it under the | ||
-- terms of the Apache License, Version 2.0. A copy of the License can be | ||
-- found in the file "license.txt" at the root of this distribution. | ||
----------------------------------------------------------------------------- | ||
{- | ||
Kinds describing how an operation is using the resumption. | ||
-} | ||
----------------------------------------------------------------------------- | ||
module Common.ResumeKind ( ResumeKind(..) ) where | ||
|
||
data ResumeKind | ||
= ResumeNever | ||
| ResumeTail | ||
| ResumeScopedOnce | ||
| ResumeScoped | ||
| ResumeOnce | ||
| ResumeNormal | ||
| ResumeOnceRaw | ||
| ResumeNormalRaw | ||
deriving (Eq,Ord,Enum) | ||
|
||
instance Show ResumeKind where | ||
show rk = case rk of | ||
ResumeNever -> "never" | ||
ResumeTail -> "tail" | ||
ResumeScopedOnce -> "scoped once" | ||
ResumeScoped -> "scoped" | ||
ResumeOnce -> "once" | ||
ResumeNormal -> "normal" | ||
ResumeOnceRaw -> "once (no finalization)" | ||
ResumeNormalRaw -> "normal (no finalization)" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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