forked from jsoo1/guix-channel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ghc-servant.scm
1902 lines (1807 loc) · 69.9 KB
/
ghc-servant.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(define-module (ghc-servant)
#:use-module (gnu packages curl)
#:use-module (gnu packages haskell)
#:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages haskell-check)
#:use-module (gnu packages haskell-crypto)
#:use-module (gnu packages haskell-web)
#:use-module (guix build-system haskell)
#:use-module (guix download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:export (ghc-servant
ghc-servant-server
ghc-servant-websockets
ghc-websockets
ghc-aeson-1.4.2.0
ghc-conduit-1.3.0.3))
(define ghc-servant-server
(package
(name "ghc-servant-server")
(version "0.15")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/servant-server/servant-server-"
version
".tar.gz"))
(sha256
(base32
"1qlkdgls2z71sx09lbkrqcxwx1wam3hn7dnyps6z2i7qixhlw0wq"))))
(build-system haskell-build-system)
(inputs
`(("ghc-servant" ,ghc-servant)
("ghc-http-api-data" ,ghc-http-api-data-0.4)
("ghc-base-compat" ,ghc-base-compat-0.10.5)
("ghc-base64-bytestring" ,ghc-base64-bytestring)
("ghc-exceptions" ,ghc-exceptions)
("ghc-http-media" ,ghc-http-media)
("ghc-http-types" ,ghc-http-types-0.12.2)
("ghc-network-uri" ,ghc-network-uri)
("ghc-monad-control" ,ghc-monad-control)
("ghc-network" ,ghc-network-2.8.0.0)
("ghc-string-conversions" ,ghc-string-conversions)
("ghc-resourcet" ,ghc-resourcet-1.2.2)
("ghc-tagged" ,ghc-tagged-0.8.6)
("ghc-transformers-base" ,ghc-transformers-base)
("ghc-wai" ,ghc-wai-3.2.1.2)
("ghc-wai-app-static" ,ghc-wai-app-static)
("ghc-word8" ,ghc-word8)
("ghc-aeson" ,ghc-aeson-1.4.2.0)
("ghc-warp" ,ghc-warp-3.2.26)))
(arguments `(#:tests? #f))
(native-inputs
`(("ghc-safe" ,ghc-safe)
("ghc-transformers-compat" ,ghc-transformers-compat)
("ghc-hspec" ,ghc-hspec-2.6.1)
("ghc-hspec-wai" ,ghc-hspec-wai-0.9.2)
("ghc-quickcheck" ,ghc-quickcheck-2.12.6.1)
("ghc-should-not-typecheck" ,ghc-should-not-typecheck)
("ghc-temporary" ,ghc-temporary)
("ghc-wai-extra" ,ghc-wai-extra-3.0.25)
("ghc-doctest" ,ghc-doctest)
("ghc-cabal-doctest" ,ghc-cabal-doctest)))
(home-page
"http://haskell-servant.readthedocs.org/")
(synopsis
"A family of combinators for defining webservices APIs and serving them")
(description
"A family of combinators for defining webservices APIs and serving them
You can learn about the basics in the tutorial at http://haskell-servant.readthedocs.org/en/stable/tutorial/index.html.
https://github.com/haskell-servant/servant/blob/master/servant-server/example/greet.hs
Here is a runnable example, with comments, that defines a dummy API and implements a webserver that serves this API, using this package.
CHANGELOG: https://github.com/haskell-servant/servant/blob/master/servant-server/CHANGELOG.md")
(license license:bsd-3)))
(define ghc-servant
(package
(name "ghc-servant")
(version "0.15")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/servant/servant-"
version
".tar.gz"))
(sha256
(base32
"0fgsddg8yn23izk3g4bmax6rlh56qhx13j8h5n6fxr7mq34kagsg"))))
(build-system haskell-build-system)
(inputs
`(("ghc-http-api-data" ,ghc-http-api-data-0.4)
("ghc-singleton-bool" ,ghc-singleton-bool)
("ghc-base-compat" ,ghc-base-compat-0.10.5)
("ghc-aeson" ,ghc-aeson-1.4.2.0)
("ghc-attoparsec" ,ghc-attoparsec)
("ghc-bifunctors" ,ghc-bifunctors-5.5.3)
("ghc-case-insensitive" ,ghc-case-insensitive)
("ghc-http-media" ,ghc-http-media)
("ghc-http-types" ,ghc-http-types-0.12.2)
("ghc-mmorph" ,ghc-mmorph)
("ghc-network-uri" ,ghc-network-uri)
("ghc-quickcheck" ,ghc-quickcheck-2.12.6.1)
("ghc-string-conversions" ,ghc-string-conversions)
("ghc-tagged" ,ghc-tagged-0.8.6)
("ghc-vault" ,ghc-vault)))
;; TODO FIX CABAL BUILD DEPENDENCIEs
(arguments `(#:tests? #f))
;; (native-inputs
;; `(("ghc-hspec" ,ghc-hspec-2.6.1)
;; ("ghc-quickcheck-instances" ,ghc-quickcheck-instances-0.3.19)
;; ("ghc-doctest" ,ghc-doctest)
;; ("ghc-cabal-doctest" ,ghc-cabal-doctest)))
(home-page
"http://haskell-servant.readthedocs.org/")
(synopsis
"A family of combinators for defining webservices APIs")
(description
"A family of combinators for defining webservices APIs and serving them
You can learn about the basics in the tutorial at http://haskell-servant.readthedocs.org/en/stable/tutorial/index.html
CHANGELOG https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md")
(license license:bsd-3)))
(define ghc-servant-websockets
(package
(name "ghc-servant-websockets")
(version "1.1.0")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/servant-websockets/servant-websockets-"
version
".tar.gz"))
(sha256
(base32
"0l8a5zc6wiwdfxv2kirb7kxky4zwj71rcrrg1zh07gc3vf4lqf33"))))
(build-system haskell-build-system)
(inputs
`(("ghc-aeson" ,ghc-aeson-1.4.2.0)
("ghc-async" ,ghc-async)
("ghc-conduit" ,ghc-conduit-1.3.0.3)
("ghc-exceptions" ,ghc-exceptions)
("ghc-resourcet" ,ghc-resourcet-1.2.2)
("ghc-servant-server" ,ghc-servant-server)
("ghc-wai" ,ghc-wai-3.2.1.2)
("ghc-wai-websockets" ,ghc-wai-websockets)
("ghc-warp" ,ghc-warp-3.2.26)
("ghc-websockets" ,ghc-websockets)))
(home-page
"https://github.com/moesenle/servant-websockets#readme")
(synopsis
"Small library providing WebSocket endpoints for servant.")
(description
"Small library providing WebSocket endpoints for servant.")
(license license:bsd-3)))
;; DEPENDENCIES
(define ghc-cabal-doctest
(package
(name "ghc-cabal-doctest")
(version "1.0.6")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/cabal-doctest/cabal-doctest-"
version
".tar.gz"))
(sha256
(base32
"0bgd4jdmzxq5y465r4sf4jv2ix73yvblnr4c9wyazazafddamjny"))))
(build-system haskell-build-system)
(arguments `(#:haskell ,ghc-8.0))
(home-page "https://github.com/phadej/cabal-doctest")
(synopsis "A Setup.hs helper for doctests running")
(description
"Currently (beginning of 2017), there isn't cabal doctest command. Yet, to properly work doctest needs plenty of configuration. This library provides the common bits for writing custom Setup.hs See Cabal issue 2327 https://github.com/haskell/cabal/issues/2327. For the progress of cabal doctest, i.e. whether this library is obsolete.")
(license license:bsd-3)))
(define ghc-string-conversions
(package
(name "ghc-string-conversions")
(version "0.4.0.1")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/string-conversions/string-conversions-"
version
".tar.gz"))
(sha256
(base32
"150rdank90h7v08x0wq4dffjbxv2daf5v9sqfs5mab76kinwxg26"))))
(build-system haskell-build-system)
(inputs
`(("ghc-utf8-string" ,ghc-utf8-string)))
(native-inputs
`(("ghc-hspec" ,ghc-hspec-2.6.1)
("hspec-discover" ,ghc-hspec-discover-2.6.1)
("ghc-quickcheck-instances" ,ghc-quickcheck-instances-0.3.19)
("ghc-quickcheck" ,ghc-quickcheck-2.12.6.1)))
(home-page
"https://github.com/soenkehahn/string-conversions#readme")
(synopsis "Simplifies dealing with different types for strings")
(description
"Provides a simple type class for converting values of different string types into values of other string types.")
(license license:bsd-3)))
(define ghc-http-media
(package
(name "ghc-http-media")
(version "0.7.1.3")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/http-media/http-media-"
version
".tar.gz"))
(sha256
(base32
"0kqjzvh5y8r6x5rw2kgd816w2963c6cbyw2qjvaj2mv59zxzqkrr"))))
(build-system haskell-build-system)
(inputs
`(("ghc-case-insensitive" ,ghc-case-insensitive)
("ghc-utf8-string" ,ghc-utf8-string)))
(native-inputs
`(("ghc-quickcheck" ,ghc-quickcheck)
("ghc-test-framework" ,ghc-test-framework)
("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
(home-page "https://github.com/zmthy/http-media")
(synopsis "Processing HTTP Content-Type and Accept headers")
(description
"This library is intended to be a comprehensive solution to parsing and selecting quality-indexed values in HTTP headers. It is capable of parsing both media types and language parameters from the Accept and Content header families, and can be extended to match against other accept headers as well. Selecting the appropriate header value is achieved by comparing a list of server options against the quality-indexed values supplied by the client.
In the following example, the Accept header is parsed and then matched against a list of server options to serve the appropriate media using 'mapAcceptMedia':
getHeader >>= maybe send406Error sendResourceWith . mapAcceptMedia
[ (\"text/html\", asHtml)
, (\"application/json\", asJson)
]
Similarly, the Content-Type header can be used to produce a parser for request bodies based on the given content type with 'mapContentMedia':
getContentType >>= maybe send415Error readRequestBodyWith . mapContentMedia
[ (\"application/json\", parseJson)
, (\"text/plain\", parseText)
]
The API is agnostic to your choice of server.")
(license license:expat)))
(define ghc-singleton-bool
(package
(name "ghc-singleton-bool")
(version "0.1.4")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/singleton-bool/singleton-bool-"
version
".tar.gz"))
(sha256
(base32
"0apvzb6ym0fnm4rx7paz6ivv72ahzn2bxhvyd1drw50ypvicd581"))))
(build-system haskell-build-system)
(home-page "https://github.com/phadej/singleton-bool#readme")
(synopsis "Type level booleans")
(description
"Type level booleans.
singletons package provides similar functionality, but it has tight dependency constraints.")
(license license:bsd-3)))
(define ghc-quickcheck-2.12.6.1
(package
(name "ghc-quickcheck-2.12.6.1")
(version "2.12.6.1")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/QuickCheck/QuickCheck-"
version
".tar.gz"))
(sha256
(base32
"0w51zbbvh46g3wllqfmx251xzbnddy94ixgm6rf8gd95qvssfahb"))))
(build-system haskell-build-system)
(inputs
`(("ghc-random" ,ghc-random)
("ghc-erf" ,ghc-erf)
("ghc-tf-random" ,ghc-tf-random)))
(home-page
"https://github.com/nick8325/quickcheck")
(synopsis
"Automatic testing of Haskell programs")
(description
"QuickCheck is a library for random testing of program properties. The programmer provides a specification of the program, in the form of properties which functions should satisfy, and QuickCheck then tests that the properties hold in a large number of randomly generated cases. Specifications are expressed in Haskell, using combinators provided by QuickCheck. QuickCheck provides combinators to define properties, observe the distribution of test data, and define test data generators.
Most of QuickCheck's functionality is exported by the main \"Test.QuickCheck\" module. The main exception is the monadic property testing library in \"Test.QuickCheck.Monadic\".
If you are new to QuickCheck, you can try looking at the following resources:
* The official QuickCheck manual at http://www.cse.chalmers.se/~rjmh/QuickCheck/manual.html. It's a bit out-of-date in some details and doesn't cover newer QuickCheck features, but is still full of good advice.
* https://begriffs.com/posts/2017-01-14-design-use-quickcheck.html, a detailed tutorial written by a user of QuickCheck.
The quickcheck-instances (see http://hackage.haskell.org/package/quickcheck-instances) companion package provides instances for types in Haskell Platform packages at the cost of additional dependencies.")
(license license:bsd-3)))
(define ghc-aeson-1.4.2.0
(package
(name "ghc-aeson-1.4.2.0")
(version "1.4.2.0")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/aeson/aeson-"
version
".tar.gz"))
(sha256
(base32
"1l4b675nxddim3v30kd7zr3vmrs7i1m81rh8h9bfbm9k9a0p3kkm"))))
(build-system haskell-build-system)
(inputs
`(("ghc-base-compat" ,ghc-base-compat-0.10.5)
("ghc-contravariant" ,ghc-contravariant)
("ghc-unordered-containers" ,ghc-unordered-containers)
("ghc-tagged" ,ghc-tagged-0.8.6)
("ghc-primitive" ,ghc-primitive)
("ghc-attoparsec" ,ghc-attoparsec)
("ghc-dlist" ,ghc-dlist)
("ghc-hashable" ,ghc-hashable)
("ghc-scientific" ,ghc-scientific)
("ghc-th-abstraction" ,ghc-th-abstraction)
("ghc-time-locale-compat" ,ghc-time-locale-compat)
("ghc-uuid-types" ,ghc-uuid-types)
("ghc-vector" ,ghc-vector)))
;; TODO: fix quickcheck dependency < 2.12
(arguments `(#:tests? #f))
;; (native-inputs
;; `(("ghc-quickcheck" ,ghc-quickcheck-2.12.6.1)
;; ("ghc-integer-logarithms" ,ghc-integer-logarithms)
;; ("ghc-base-orphans" ,ghc-base-orphans)
;; ("ghc-base16-bytestring" ,ghc-base16-bytestring)
;; ("ghc-generic-deriving" ,ghc-generic-deriving)
;; ("ghc-tasty" ,ghc-tasty-1.1.0.3)
;; ("ghc-tasty-hunit" ,ghc-tasty-hunit-0.10.0.1)
;; ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck-0.10)
;; ("ghc-quickcheck-instances" ,ghc-quickcheck-instances-0.3.19)
;; ("ghc-hashable-time" ,ghc-hashable-time)))
(home-page "https://github.com/bos/aeson")
(synopsis "Fast JSON parsing and encoding")
(description
"A JSON parsing and encoding library optimized for ease of use and high performance.
To get started, see the documentation for the Data.Aeson module below.
(A note on naming: in Greek mythology, Aeson was the father of Jason.)")
(license license:bsd-3)))
(define ghc-base-compat-0.10.5
(package
(name "ghc-base-compat-0.10.5")
(version "0.10.5")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/base-compat/base-compat-"
version
".tar.gz"))
(sha256
(base32
"0hgvlqcr852hfp52jp99snhbj550mvxxpi8qn15d8ml9aqhyl2lr"))))
(build-system haskell-build-system)
(home-page
"http://hackage.haskell.org/package/base-compat")
(synopsis "A compatibility layer for base")
(description
"Provides functions available in later versions of base to a wider range of compilers, without requiring you to use CPP pragmas in your code. See the README at https://github.com/haskell-compat/base-compat/blob/master/base-compat/README.markdown for what is covered. Also see the changelog for recent changes at https://github.com/haskell-compat/base-compat/blob/master/base-compat/CHANGES.markdown.
Note that base-compat does not add any orphan instances. There is a separate package, base-orphans (see <http://hackage.haskell.org/package/base-orphans), for that.
In addition, base-compat does not backport any data types or type classes. See this section of the README for more info: https://github.com/haskell-compat/base-compat/blob/master/base-compat/README.markdown#data-types-and-type-classes.
base-compat is designed to have zero dependencies. For a version of base-compat that depends on compatibility libraries for a wider support window, see the base-compat-batteries package: http://hackage.haskell.org/package/base-compat-batteries. Most of the modules in this library have the same names as in base-compat-batteries to make it easier to switch between the two. There also exist versions of each module with the suffix .Repl, which are distinct from anything in base-compat-batteries, to allow for easier use in GHCi.")
(license license:expat)))
(define ghc-hspec-discover-2.7.0
(package
(name "ghc-hspec-discover")
(version "2.7.0")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/hspec-discover/hspec-discover-"
version
".tar.gz"))
(sha256
(base32
"1n3by0dn3x3kfy7vnyfdz0dr2wwwj82m0ijlm9s1n6aa976xddhw"))))
(build-system haskell-build-system)
(native-inputs
`(("ghc-quickcheck-2.12.6.1" ,ghc-quickcheck-2.12.6.1)
("ghc-hspec-meta-2.6.0" ,ghc-hspec-meta-2.6.0)))
(home-page "http://hspec.github.io/")
(synopsis
"Automatically discover and run Hspec tests")
(description
"Automatically discover and run Hspec tests . <http://hspec.github.io/hspec-discover.html>")
(license license:expat)))
(define ghc-hspec-2.7.0
(package
(name "ghc-hspec-2.7.0")
(version "2.7.0")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/hspec/hspec-"
version
".tar.gz"))
(sha256
(base32
"1qbikvd91cimbn439zwsdcrz0hsl7n2w4cl0vlcw8kbf94nm6z7z"))))
(build-system haskell-build-system)
(inputs
`(("ghc-quickcheck-2.12.6.1" ,ghc-quickcheck-2.12.6.1)
("ghc-hspec-core-2.7.0" ,ghc-hspec-core-2.7.0)
("ghc-hspec-discover-2.7.0" ,ghc-hspec-discover-2.7.0)
("ghc-hspec-expectations" ,ghc-hspec-expectations)))
(home-page "http://hspec.github.io/")
(synopsis "A Testing Framework for Haskell")
(description
"Hspec is a testing framework for Haskell. Some of Hspec's distinctive features are:
* a friendly DSL for defining tests
* integration with QuickCheck, SmallCheck, and HUnit
* parallel test execution
* automatic discovery of test files
The Hspec Manual is at http://hspec.github.io/.")
(license license:expat)))
(define ghc-hspec-core-2.7.0
(package
(name "ghc-hspec-core-2.7.0")
(version "2.7.0")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/hspec-core/hspec-core-"
version
".tar.gz"))
(sha256
(base32
"1y4j0ivngz7jrff1riyy2iirnb5kc9p4cr619wdrsrvrm3blgzrz"))))
(build-system haskell-build-system)
(inputs
`(("ghc-hunit" ,ghc-hunit)
("ghc-quickcheck-2.12.6.1" ,ghc-quickcheck-2.12.6.1)
("ghc-ansi-terminal" ,ghc-ansi-terminal)
("ghc-call-stack" ,ghc-call-stack)
("ghc-clock" ,ghc-clock)
("ghc-hspec-expectations" ,ghc-hspec-expectations)
("ghc-quickcheck-io-0.2.0" ,ghc-quickcheck-io-0.2.0)
("ghc-random" ,ghc-random)
("ghc-setenv" ,ghc-setenv)
("ghc-tf-random" ,ghc-tf-random)))
(native-inputs
`(("ghc-hspec-meta-2.6.0" ,ghc-hspec-meta-2.6.0)
("ghc-silently" ,ghc-silently)
("ghc-temporary" ,ghc-temporary)))
(home-page "http://hspec.github.io/")
(synopsis "A Testing Framework for Haskell")
(description
"This package exposes internal types and functions that can be used to extend Hspec's functionality.")
(license license:expat)))
(define ghc-quickcheck-io-0.2.0
(package
(name "ghc-quickcheck-io-0.2.0")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/quickcheck-io/quickcheck-io-"
version
".tar.gz"))
(sha256
(base32
"08k4v7pkgjf30pv5j2dfv1gqv6hclxlniyq2sps8zq4zswcr2xzv"))))
(build-system haskell-build-system)
(inputs
`(("ghc-quickcheck-2.12.6.1" ,ghc-quickcheck-2.12.6.1)
("ghc-hunit" ,ghc-hunit)))
(home-page
"https://github.com/hspec/quickcheck-io#readme")
(synopsis
"Use HUnit assertions as QuickCheck properties")
(description
"This package provides an orphan instance that allows you to use HUnit assertions as QuickCheckproperties.")
(license license:expat)))
(define ghc-hspec-meta-2.6.0
(package
(name "ghc-hspec-meta-2.6.0")
(version "2.6.0")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/hspec-meta/hspec-meta-"
version
".tar.gz"))
(sha256
(base32
"1n1a4633wfivylglji8920f67mx7qz8j4q58n8p7dxk6yg4h3mz6"))))
(build-system haskell-build-system)
(inputs
`(("ghc-hunit" ,ghc-hunit)
("ghc-quickcheck" ,ghc-quickcheck-2.12.6.1)
("ghc-ansi-terminal" ,ghc-ansi-terminal)
("ghc-call-stack" ,ghc-call-stack)
("ghc-clock" ,ghc-clock)
("ghc-hspec-expectations" ,ghc-hspec-expectations)
("ghc-quickcheck-io" ,ghc-quickcheck-io-0.2.0)
("ghc-random" ,ghc-random)
("ghc-setenv" ,ghc-setenv)))
(home-page "http://hspec.github.io/")
(synopsis
"A version of Hspec which is used to test Hspec itself")
(description
"A stable version of Hspec which is used to test the in-development version of Hspec.")
(license license:expat)))
(define ghc-http-api-data-0.4
(package
(name "ghc-http-api-data-0.4")
(version "0.4")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/http-api-data/http-api-data-"
version
".tar.gz"))
(sha256
(base32
"12ja2rrs6dvajw300agp4fms21859a7n193m7nicmwixy8wkyzl3"))))
(build-system haskell-build-system)
(inputs
`(("ghc-attoparsec" ,ghc-attoparsec)
("ghc-attoparsec-iso8601" ,ghc-attoparsec-iso8601-1.0.1.0)
("ghc-base-compat" ,ghc-base-compat-0.10.5)
("ghc-cookie" ,ghc-cookie)
("ghc-hashable" ,ghc-hashable)
("ghc-http-types" ,ghc-http-types-0.12.2)
("ghc-tagged" ,ghc-tagged-0.8.6)
("ghc-time-locale-compat" ,ghc-time-locale-compat)
("ghc-unordered-containers" ,ghc-unordered-containers)
("ghc-uuid-types" ,ghc-uuid-types)))
;; TODO fix, maybe? Cannot find Build_doctests
(arguments `(#:tests? #f))
;; (native-inputs
;; `(("ghc-nats" ,ghc-nats)
;; ("ghc-hunit" ,ghc-hunit)
;; ("ghc-hspec" ,ghc-hspec-2.6.1)
;; ("ghc-hspec-discover" ,ghc-hspec-discover-2.6.1)
;; ("ghc-quickcheck" ,ghc-quickcheck-2.12.6.1)
;; ("ghc-quickcheck-instances" ,ghc-quickcheck-instances-0.3.19)
;; ("ghc-doctest" ,ghc-doctest-0.16.0.1)
;; ("ghc-cabal-doctest" ,ghc-cabal-doctest)))
(home-page
"http://github.com/fizruk/http-api-data")
(synopsis
"Converting to/from HTTP API data like URL pieces, headers and query parameters.")
(description
"This package defines typeclasses used for converting Haskell data types to and from HTTP API data.
Please see README.md")
(license license:bsd-3)))
(define ghc-hspec-2.6.1
(package
(name "ghc-hspec-2.6.1")
(version "2.6.1")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/hspec/hspec-"
version
".tar.gz"))
(sha256
(base32
"1jkfqhdymr62rzqmlmc22mpla23p67rnls3v3zs30ggxbgs4dxlb"))))
(build-system haskell-build-system)
(inputs
`(("ghc-quickcheck" ,ghc-quickcheck-2.12.6.1)
("ghc-hspec-core" ,ghc-hspec-core-2.6.1)
("ghc-hspec-discover" ,ghc-hspec-discover-2.6.1)
("ghc-hspec-expectations" ,ghc-hspec-expectations)))
(home-page "http://hspec.github.io/")
(synopsis "A Testing Framework for Haskell")
(description
"Hspec is a testing framework for Haskell. Some of Hspec's distinctive features are: . * a friendly DSL for defining tests . * integration with QuickCheck, SmallCheck, and HUnit . * parallel test execution . * automatic discovery of test files
The Hspec Manual is at http://hspec.github.io/.")
(license license:expat)))
(define ghc-hspec-core-2.6.1
(package
(name "ghc-hspec-core-2.6.1")
(version "2.6.1")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/hspec-core/hspec-core-"
version
".tar.gz"))
(sha256
(base32
"0xg43kan7p6ahi5827qwcyiic6bq0bp8n0n8h3j4kh87qhdl4avv"))))
(build-system haskell-build-system)
(inputs
`(("ghc-hunit" ,ghc-hunit)
("ghc-quickcheck" ,ghc-quickcheck-2.12.6.1)
("ghc-ansi-terminal" ,ghc-ansi-terminal)
("ghc-call-stack" ,ghc-call-stack)
("ghc-clock" ,ghc-clock)
("ghc-hspec-expectations" ,ghc-hspec-expectations)
("ghc-quickcheck-io" ,ghc-quickcheck-io-0.2.0)
("ghc-random" ,ghc-random)
("ghc-setenv" ,ghc-setenv)
("ghc-tf-random" ,ghc-tf-random)))
(native-inputs
`(("ghc-hspec-meta" ,ghc-hspec-meta-2.6.0)
("ghc-silently" ,ghc-silently)
("ghc-temporary" ,ghc-temporary)))
(home-page "http://hspec.github.io/")
(synopsis "A Testing Framework for Haskell")
(description
"This package exposes internal types and functions that can be used to extend Hspec's functionality.")
(license license:expat)))
(define ghc-hspec-discover-2.6.1
(package
(name "ghc-hspec-discover-2.6.1")
(version "2.6.1")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/hspec-discover/hspec-discover-"
version
".tar.gz"))
(sha256
(base32
"189gj8drfzdf3j3xm8gbj9hjc1ha95ajhi47s9r440yjhyarlmlx"))))
(build-system haskell-build-system)
(native-inputs
`(("ghc-quickcheck" ,ghc-quickcheck-2.12.6.1)
("ghc-hspec-meta" ,ghc-hspec-meta-2.6.0)))
(home-page "http://hspec.github.io/")
(synopsis
"Automatically discover and run Hspec tests")
(description
"Automatically discover and run Hspec tests . <http://hspec.github.io/hspec-discover.html>")
(license license:expat)))
(define ghc-quickcheck-instances-0.3.19
(package
(name "ghc-quickcheck-instances-0.3.19")
(version "0.3.19")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/quickcheck-instances/quickcheck-instances-"
version
".tar.gz"))
(sha256
(base32
"0mls8095ylk5pq2j787ary5lyn4as64414silq3zn4sky3zsx92p"))))
(build-system haskell-build-system)
(inputs
`(("ghc-quickcheck" ,ghc-quickcheck-2.12.6.1)
("ghc-base-compat" ,ghc-base-compat-0.10.5)
("ghc-case-insensitive" ,ghc-case-insensitive)
("ghc-hashable" ,ghc-hashable)
("ghc-old-time" ,ghc-old-time)
("ghc-scientific" ,ghc-scientific)
("ghc-tagged" ,ghc-tagged-0.8.6)
("ghc-transformers-compat" ,ghc-transformers-compat)
("ghc-unordered-containers" ,ghc-unordered-containers)
("ghc-uuid-types" ,ghc-uuid-types)
("ghc-vector" ,ghc-vector)))
(home-page
"https://github.com/phadej/qc-instances")
(synopsis "Common quickcheck instances")
(description
"QuickCheck instances.
The goal is to supply QuickCheck instances for types provided by the Haskell Platform.
Since all of these instances are provided as orphans, I recommend that you do not use this library within another library module, so that you don't impose these instances on down-stream consumers of your code.
For information on writing a test-suite with Cabal see https://www.haskell.org/cabal/users-guide/developing-packages.html#test-suites")
(license license:bsd-3)))
(define ghc-http-types-0.12.2
(package
(name "ghc-http-types-0.12.2")
(version "0.12.2")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/http-types/http-types-"
version
".tar.gz"))
(sha256
(base32
"01ck5wmzvl5cqd3w2kwkrmp18n78474a3lngk6ry28w9pbbh4caj"))))
(build-system haskell-build-system)
(inputs
`(("ghc-case-insensitive" ,ghc-case-insensitive)))
(native-inputs
`(("ghc-quickcheck" ,ghc-quickcheck-2.12.6.1)
("ghc-quickcheck-instances" ,ghc-quickcheck-instances-0.3.19)
("ghc-hspec" ,ghc-hspec-2.6.1)
("ghc-hspec-discover" ,ghc-hspec-discover-2.6.1)
("ghc-doctest" ,ghc-doctest-0.16.0.1)))
(home-page
"https://github.com/aristidb/http-types")
(synopsis
"Generic HTTP types for Haskell (for both client and server code).")
(description
"Generic HTTP types for Haskell (for both client and server code).")
(license license:bsd-3)))
(define ghc-attoparsec-iso8601-1.0.1.0
(package
(name "ghc-attoparsec-iso8601-1.0.1.0")
(version "1.0.1.0")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/attoparsec-iso8601/attoparsec-iso8601-"
version
".tar.gz"))
(sha256
(base32
"0hj10w15qp2z5bz2v4xahhmbgzclpyfi5l2sv97wqycysg9gp7s9"))))
(build-system haskell-build-system)
(inputs
`(("ghc-attoparsec" ,ghc-attoparsec)
("ghc-base-compat" ,ghc-base-compat-0.10.5)))
(home-page "https://github.com/bos/aeson")
(synopsis
"Parsing of ISO 8601 dates, originally from aeson.")
(description
"Parsing of ISO 8601 dates, originally from aeson.")
(license license:bsd-3)))
(define ghc-doctest-0.16.0.1
(package
(name "ghc-doctest-0.16.0.1")
(version "0.16.0.1")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/doctest/doctest-"
version
".tar.gz"))
(sha256
(base32
"106pc4rs4cfym7754gzdgy36dm9aidwmnqpjm9k7yq1hfd4pallv"))))
(build-system haskell-build-system)
(inputs
`(("ghc-base-compat" ,ghc-base-compat-0.10.5)
("ghc-code-page" ,ghc-code-page)
("ghc-paths" ,ghc-paths)
("ghc-syb" ,ghc-syb)))
;; TODO fix, maybe
(arguments `(#:tests? #f))
(home-page
"https://github.com/sol/doctest#readme")
(synopsis "Test interactive Haskell examples")
(description
"The doctest program checks examples in source code comments. It is modeled after doctest for Python (http://docs.python.org/library/doctest.html).
Documentation is at https://github.com/sol/doctest#readme.")
(license license:expat)))
(define ghc-with-location
(package
(name "ghc-with-location")
(version "0.1.0")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/with-location/with-location-"
version
".tar.gz"))
(sha256
(base32
"1rzxvsyh8x3ql3zh7gyw9hjx9bl4v73h0y5kzgaxcfcdn86dg49c"))))
(build-system haskell-build-system)
(native-inputs `(("ghc-hspec" ,ghc-hspec-2.7.0)
("ghc-hspec-discover" ,ghc-hspec-discover-2.7.0)))
(home-page
"https://github.com/sol/with-location#readme")
(synopsis
"Use ImplicitParams-based source locations in a backward compatible way")
(description "")
(license license:expat)))
(define ghc-tagged-0.8.6
(package
(name "ghc-tagged-0.8.6")
(version "0.8.6")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/tagged/tagged-"
version
".tar.gz"))
(sha256
(base32
"1pciqzxf9ncv954v4r527xkxkn7r5hcr13mfw5dg1xjci3qdw5md"))))
(build-system haskell-build-system)
(home-page "http://github.com/ekmett/tagged")
(synopsis
"Haskell 98 phantom types to avoid unsafely passing dummy arguments")
(description
"Haskell 98 phantom types to avoid unsafely passing dummy arguments.")
(license license:bsd-3)))
(define ghc-wai-app-static
(package
(name "ghc-wai-app-static")
(version "3.1.6.2")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/wai-app-static/wai-app-static-"
version
".tar.gz"))
(sha256
(base32
"0gnwq6ad5m8w8sqq4dzpz23l5rjdphfsf8h9h27lrvv1prkabc6h"))))
(build-system haskell-build-system)
(inputs
`(("ghc-blaze-html" ,ghc-blaze-html)
("ghc-blaze-markup" ,ghc-blaze-markup)
("ghc-cryptonite" ,ghc-cryptonite)
("ghc-file-embed" ,ghc-file-embed)
("ghc-http-date" ,ghc-http-date)
("ghc-http-types" ,ghc-http-types-0.12.2)
("ghc-memory" ,ghc-memory)
("ghc-mime-types" ,ghc-mime-types)
("ghc-network" ,ghc-network)
("ghc-old-locale" ,ghc-old-locale)
("ghc-optparse-applicative" ,ghc-optparse-applicative)
("ghc-temporary" ,ghc-temporary)
("ghc-unix-compat" ,ghc-unix-compat)
("ghc-unordered-containers" ,ghc-unordered-containers)
("ghc-wai" ,ghc-wai-3.2.1.2)
("ghc-wai-extra" ,ghc-wai-extra-3.0.25)
("ghc-warp" ,ghc-warp-3.2.26)
("ghc-zlib" ,ghc-zlib)))
(native-inputs
`(("ghc-hspec" ,ghc-hspec-2.6.1)
("ghc-mocker" ,ghc-mockery-0.3.5)))
(home-page
"http://www.yesodweb.com/book/web-application-interface")
(synopsis "WAI application for static serving")
(description
" API docs and the README are available at http://www.stackage.org/package/wai-app-static.")
(license license:expat)))
(define ghc-hspec-wai-0.9.2
(package
(name "ghc-hspec-wai-0.9.2")
(version "0.9.2")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/hspec-wai/hspec-wai-"
version
".tar.gz"))
(sha256
(base32
"0gr8j8x8vvzygxyqc0likam63f3427x4p73g95a387aksr5l2ph5"))))
(build-system haskell-build-system)
(inputs
`(("ghc-quickcheck" ,ghc-quickcheck-2.12.6.1)
("ghc-base-compat" ,ghc-base-compat-0.10.5)
("ghc-case-insensitive" ,ghc-case-insensitive)
("ghc-hspec-core" ,ghc-hspec-core-2.6.1)
("ghc-hspec-expectations" ,ghc-hspec-expectations)
("ghc-http-types" ,ghc-http-types-0.12.2)
("ghc-wai" ,ghc-wai-3.2.1.2)
("ghc-wai-extra" ,ghc-wai-extra-3.0.25)))
(native-inputs
`(("ghc-hspec" ,ghc-hspec-2.6.1)
("ghc-hspec-discover" ,ghc-hspec-discover-2.6.1)))
(home-page
"https://github.com/hspec/hspec-wai#readme")
(synopsis
"Experimental Hspec support for testing WAI applications")
(description
"Experimental Hspec support for testing WAI applications")
(license license:expat)))
(define ghc-should-not-typecheck
(package
(name "ghc-should-not-typecheck")
(version "2.1.0")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/should-not-typecheck/should-not-typecheck-"
version
".tar.gz"))
(sha256
(base32
"14fmv0mv2v4fqzynamlrmdj6d1l65aw1srf1wv19nrq7rrqaqf7m"))))
(build-system haskell-build-system)
(inputs `(("ghc-hunit" ,ghc-hunit)))
(native-inputs
`(("ghc-hspec" ,ghc-hspec-2.6.1)
("ghc-hspec-expectations" ,ghc-hspec-expectations)))
(home-page
"http://github.com/CRogers/should-not-typecheck")
(synopsis
"A HUnit/hspec assertion library to verify that an expression does not typecheck")
(description
"For examples and an introduction to the library please take a look at the <https://github.com/CRogers/should-not-typecheck#should-not-typecheck- README> on github.")
(license license:bsd-3)))
(define ghc-hspec-discover-2.5.5
(package
(name "ghc-hspec-discover-2.5.5")
(version "2.5.5")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/hspec-discover/hspec-discover-"
version
".tar.gz"))
(sha256
(base32
"04aidzi91ccr9bygmfkjzshz34z9vh8wvqj4zinx2clxq6r7gqfz"))))
(build-system haskell-build-system)
(native-inputs
`(("ghc-quickcheck" ,ghc-quickcheck)
("ghc-hspec-meta" ,ghc-hspec-meta)))
(home-page "http://hspec.github.io/")
(synopsis
"Automatically discover and run Hspec tests")
(description
"Automatically discover and run Hspec tests
http://hspec.github.io/hspec-discover.html")
(license license:expat)))
(define ghc-hspec-2.6.1
(package
(name "ghc-hspec-2.6.1")
(version "2.6.1")
(source