-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This performance regression was fixed by commit 517d03e (#12234). Let's add a performance test to ensure that it doesn't break again.
- Loading branch information
1 parent
b4f2afe
commit 5088110
Showing
2 changed files
with
36 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{-# LANGUAGE DeriveDataTypeable #-} | ||
{-# LANGUAGE DeriveGeneric #-} | ||
{-# LANGUAGE DeriveFunctor #-} | ||
{-# LANGUAGE DeriveFoldable #-} | ||
|
||
module Bug where | ||
import Data.Typeable | ||
import GHC.Generics | ||
import Data.Data | ||
|
||
data Condition v = Condition | ||
deriving (Functor, Foldable) | ||
|
||
data CondTree v c a = CondNode | ||
{ condTreeData :: a | ||
, condTreeConstraints :: c | ||
, condTreeComponents :: [CondBranch v c a] | ||
} | ||
deriving (Functor, Foldable) | ||
|
||
data CondBranch v c a = CondBranch | ||
{ condBranchCondition :: Condition v | ||
, condBranchIfTrue :: CondTree v c a | ||
, condBranchIfFalse :: Maybe (CondTree v c a) | ||
} | ||
deriving (Functor, Foldable) |
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