File tree Expand file tree Collapse file tree 11 files changed +165
-0
lines changed Expand file tree Collapse file tree 11 files changed +165
-0
lines changed Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
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)
You can’t perform that action at this time.
0 commit comments