Skip to content

Commit 43100f9

Browse files
committed
Add missing CustomInstances.hs files
1 parent d5eef61 commit 43100f9

File tree

11 files changed

+165
-0
lines changed

11 files changed

+165
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module CustomInstances where
2+
3+
import Kubernetes.OpenAPI.Model
4+
5+
import Test.QuickCheck
6+
import Data.Text (pack)
7+
8+
instance Arbitrary IntOrString where
9+
arbitrary =
10+
oneof [ IntOrStringI <$> arbitrary
11+
, IntOrStringS <$> (pack <$> arbitrary)
12+
]
13+
14+
instance Arbitrary Quantity where
15+
arbitrary = Quantity <$> (pack <$> arbitrary)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module CustomInstances where
2+
3+
import Kubernetes.OpenAPI.Model
4+
5+
import Test.QuickCheck
6+
import Data.Text (pack)
7+
8+
instance Arbitrary IntOrString where
9+
arbitrary =
10+
oneof [ IntOrStringI <$> arbitrary
11+
, IntOrStringS <$> (pack <$> arbitrary)
12+
]
13+
14+
instance Arbitrary Quantity where
15+
arbitrary = Quantity <$> (pack <$> arbitrary)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module CustomInstances where
2+
3+
import Kubernetes.OpenAPI.Model
4+
5+
import Test.QuickCheck
6+
import Data.Text (pack)
7+
8+
instance Arbitrary IntOrString where
9+
arbitrary =
10+
oneof [ IntOrStringI <$> arbitrary
11+
, IntOrStringS <$> (pack <$> arbitrary)
12+
]
13+
14+
instance Arbitrary Quantity where
15+
arbitrary = Quantity <$> (pack <$> arbitrary)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module CustomInstances where
2+
3+
import Kubernetes.OpenAPI.Model
4+
5+
import Test.QuickCheck
6+
import Data.Text (pack)
7+
8+
instance Arbitrary IntOrString where
9+
arbitrary =
10+
oneof [ IntOrStringI <$> arbitrary
11+
, IntOrStringS <$> (pack <$> arbitrary)
12+
]
13+
14+
instance Arbitrary Quantity where
15+
arbitrary = Quantity <$> (pack <$> arbitrary)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module CustomInstances where
2+
3+
import Kubernetes.OpenAPI.Model
4+
5+
import Test.QuickCheck
6+
import Data.Text (pack)
7+
8+
instance Arbitrary IntOrString where
9+
arbitrary =
10+
oneof [ IntOrStringI <$> arbitrary
11+
, IntOrStringS <$> (pack <$> arbitrary)
12+
]
13+
14+
instance Arbitrary Quantity where
15+
arbitrary = Quantity <$> (pack <$> arbitrary)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module CustomInstances where
2+
3+
import Kubernetes.OpenAPI.Model
4+
5+
import Test.QuickCheck
6+
import Data.Text (pack)
7+
8+
instance Arbitrary IntOrString where
9+
arbitrary =
10+
oneof [ IntOrStringI <$> arbitrary
11+
, IntOrStringS <$> (pack <$> arbitrary)
12+
]
13+
14+
instance Arbitrary Quantity where
15+
arbitrary = Quantity <$> (pack <$> arbitrary)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module CustomInstances where
2+
3+
import Kubernetes.OpenAPI.Model
4+
5+
import Test.QuickCheck
6+
import Data.Text (pack)
7+
8+
instance Arbitrary IntOrString where
9+
arbitrary =
10+
oneof [ IntOrStringI <$> arbitrary
11+
, IntOrStringS <$> (pack <$> arbitrary)
12+
]
13+
14+
instance Arbitrary Quantity where
15+
arbitrary = Quantity <$> (pack <$> arbitrary)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module CustomInstances where
2+
3+
import Kubernetes.OpenAPI.Model
4+
5+
import Test.QuickCheck
6+
import Data.Text (pack)
7+
8+
instance Arbitrary IntOrString where
9+
arbitrary =
10+
oneof [ IntOrStringI <$> arbitrary
11+
, IntOrStringS <$> (pack <$> arbitrary)
12+
]
13+
14+
instance Arbitrary Quantity where
15+
arbitrary = Quantity <$> (pack <$> arbitrary)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module CustomInstances where
2+
3+
import Kubernetes.OpenAPI.Model
4+
5+
import Test.QuickCheck
6+
import Data.Text (pack)
7+
8+
instance Arbitrary IntOrString where
9+
arbitrary =
10+
oneof [ IntOrStringI <$> arbitrary
11+
, IntOrStringS <$> (pack <$> arbitrary)
12+
]
13+
14+
instance Arbitrary Quantity where
15+
arbitrary = Quantity <$> (pack <$> arbitrary)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module CustomInstances where
2+
3+
import Kubernetes.OpenAPI.Model
4+
5+
import Test.QuickCheck
6+
import Data.Text (pack)
7+
8+
instance Arbitrary IntOrString where
9+
arbitrary =
10+
oneof [ IntOrStringI <$> arbitrary
11+
, IntOrStringS <$> (pack <$> arbitrary)
12+
]
13+
14+
instance Arbitrary Quantity where
15+
arbitrary = Quantity <$> (pack <$> arbitrary)

0 commit comments

Comments
 (0)