Skip to content

Commit

Permalink
version 0.1.6.8: ABSCAN-1481, fixes for GHC 9. (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisshevchenko authored Feb 3, 2023
1 parent df7bdc4 commit 8f6fa20
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.1.6.8] - 2023-02-03
### Fixed
- Fixes for GHC 9.2.5.

## [0.1.6.7] - 2020-03-31
### Fixed
- Compilation with `--pedantic`.
Expand Down
9 changes: 9 additions & 0 deletions data/GraphsGHC9.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
only_path ([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[(0,1,1),(1,2,1),(2,3,1),(3,4,1),(3,5,1),(3,20,1),(5,6,1),(6,7,1),(7,8,1),(7,14,1),(8,9,1),(9,10,1),(10,11,1),(10,12,1),(12,13,1),(14,15,1),(14,17,1),(15,16,1),(17,18,1),(17,19,1),(20,21,1),(20,22,1),(22,23,1),(22,24,1),(22,26,1),(24,25,1),(26,27,1)]) fromList[(0,(351.73364,20.501846)),(1,(413.86658,98.85684)),(2,(377.07568,191.84302)),(3,(278.1518,206.47415)),(4,(263.52063,107.55028)),(5,(317.8878,298.24045)),(6,(417.2277,309.7112)),(7,(456.96368,401.47754)),(8,(397.35974,481.77304)),(9,(437.09567,573.5393)),(10,(377.49173,653.83484)),(11,(417.22766,745.6011)),(12,(278.1518,642.36414)),(13,(238.41579,550.59796)),(14,(556.3036,412.9483)),(15,(596.03955,504.7146)),(16,(536.4356,585.0101)),(17,(615.90753,332.6529)),(18,(576.1716,240.8866)),(19,(715.2475,344.12357)),(20,(178.81187,195.00336)),(21,(139.0759,103.237076)),(22,(119.20792,275.29886)),(23,(82.416916,368.285)),(24,(212.19409,312.08984)),(25,(290.54907,249.95697)),(26,(19.867989,263.8281)),(27,(-39.735962,344.1236))]
only_cycles ([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[(0,1,1),(0,31,1),(1,2,1),(2,3,1),(2,49,1),(3,4,1),(3,46,1),(4,5,1),(5,6,1),(6,7,1),(7,8,1),(7,46,1),(8,9,1),(9,10,1),(9,44,1),(10,11,1),(11,12,1),(11,50,1),(12,13,1),(13,14,1),(13,52,1),(14,15,1),(15,16,1),(16,17,1),(17,18,1),(17,52,1),(18,19,1),(18,39,1),(19,20,1),(20,21,1),(21,22,1),(21,38,1),(22,23,1),(23,24,1),(24,25,1),(24,37,1),(25,26,1),(26,27,1),(26,35,1),(27,28,1),(28,29,1),(28,33,1),(29,30,1),(30,31,1),(31,32,1),(32,33,1),(32,49,1),(33,34,1),(34,35,1),(34,48,1),(35,36,1),(36,37,1),(36,41,1),(37,38,1),(38,39,1),(39,40,1),(40,41,1),(40,51,1),(41,42,1),(42,43,1),(42,48,1),(43,44,1),(43,50,1),(44,45,1),(45,46,1),(45,47,1),(47,48,1),(47,49,1),(50,51,1),(51,52,1)]) fromList[(0,(403.5895,571.94006)),(1,(445.5209,481.15594)),(2,(387.86526,399.45023)),(3,(429.79666,308.66608)),(4,(529.3837,299.58768)),(5,(571.3152,208.80348)),(6,(513.6594,127.09785)),(7,(414.0723,136.17632)),(8,(356.41666,54.47058)),(9,(256.8297,63.54894)),(10,(199.17412,-18.156782)),(11,(99.58706,-9.07839)),(12,(41.931416,-90.78412)),(13,(-57.655647,-81.70573)),(14,(-115.31131,-163.41145)),(15,(-214.89836,-154.33304)),(16,(-256.82974,-63.54891)),(17,(-199.17412,18.156805)),(18,(-241.10568,108.9409)),(19,(-340.69272,118.01934)),(20,(-382.62408,208.80348)),(21,(-324.9684,290.5092)),(22,(-366.89978,381.2934)),(23,(-309.24402,462.99915)),(24,(-209.65697,453.9205)),(25,(-152.00133,535.62634)),(26,(-52.414257,526.5479)),(27,(5.241503,608.25366)),(28,(104.828545,599.17523)),(29,(162.48398,680.8808)),(30,(262.071,671.8024)),(31,(304.00244,581.0185)),(32,(246.3468,499.31274)),(33,(146.75992,508.39108)),(34,(89.10421,426.68536)),(35,(-10.482858,435.76373)),(36,(-68.13858,354.05807)),(37,(-167.72563,363.1365)),(38,(-225.38132,281.4308)),(39,(-183.44992,190.64664)),(40,(-83.86286,181.56824)),(41,(-26.20719,263.274)),(42,(73.37986,254.19557)),(43,(115.31127,163.41145)),(44,(214.8983,154.33307)),(45,(272.554,236.03879)),(46,(372.141,226.96039)),(47,(230.62254,326.8229)),(48,(131.03549,335.90134)),(49,(288.2782,408.52863)),(50,(57.655643,81.70573)),(51,(-41.9314,90.78413)),(52,(-99.58706,9.078399))]
simple_drawing ([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[(0,1,1),(0,41,1),(1,2,1),(2,3,1),(3,4,1),(3,40,1),(4,5,1),(4,33,1),(5,6,1),(5,12,1),(6,7,1),(6,11,1),(7,8,1),(8,9,1),(9,10,1),(10,11,1),(12,13,1),(12,19,1),(13,14,1),(13,18,1),(14,15,1),(15,16,1),(16,17,1),(17,18,1),(19,20,1),(19,26,1),(20,21,1),(20,25,1),(21,22,1),(22,23,1),(23,24,1),(24,25,1),(26,27,1),(26,33,1),(27,28,1),(27,32,1),(28,29,1),(29,30,1),(30,31,1),(31,32,1),(33,34,1),(34,35,1),(34,39,1),(35,36,1),(36,37,1),(37,38,1),(38,39,1),(40,41,1)]) fromList[(0,(100.00002,346.41016)),(1,(50.00002,259.80762)),(2,(100.000015,173.20508)),(3,(200.00002,173.20506)),(4,(250.0,86.60252)),(5,(200.0,-1.9153093e-5)),(6,(99.999985,-8.62287e-6)),(7,(50.000004,86.60255)),(8,(-50.0,86.60254)),(9,(-100.0,-2.0267553e-6)),(10,(-50.0,-86.60255)),(11,(49.999985,-86.60255)),(12,(250.0,-86.602554)),(13,(199.99998,-173.2051)),(14,(99.99997,-173.20508)),(15,(49.99998,-259.80762)),(16,(99.99999,-346.41016)),(17,(199.99998,-346.41016)),(18,(249.99998,-259.80765)),(19,(350.0,-86.602554)),(20,(400.0,-173.20511)),(21,(349.99997,-259.80765)),(22,(399.99997,-346.4102)),(23,(499.99997,-346.4102)),(24,(550.0,-259.80765)),(25,(500.0,-173.20511)),(26,(400.0,-2.1140044e-5)),(27,(500.0,-2.022617e-5)),(28,(550.0,-86.60257)),(29,(650.0,-86.602554)),(30,(700.0,-2.0267553e-6)),(31,(650.0,86.60253)),(32,(550.0,86.60252)),(33,(350.0,86.60251)),(34,(400.0,173.20503)),(35,(500.0,173.205)),(36,(550.0,259.80753)),(37,(500.00006,346.4101)),(38,(400.0001,346.4101)),(39,(350.00006,259.8076)),(40,(250.00002,259.8076)),(41,(200.00005,346.41016))]
hard_drawing ([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[(0,1,1),(1,2,1),(1,6,1),(2,3,1),(2,6,1),(3,4,1),(3,5,1),(4,5,1),(6,7,1),(7,8,1),(7,47,1),(8,9,1),(8,45,1),(9,10,1),(9,14,1),(10,11,1),(10,14,1),(11,12,1),(11,13,1),(12,13,1),(14,15,1),(15,16,1),(15,17,1),(16,17,1),(17,18,1),(18,19,1),(18,37,1),(19,20,1),(19,40,1),(20,21,1),(21,22,1),(22,23,1),(23,24,1),(23,40,1),(24,25,1),(25,26,1),(25,41,1),(26,27,1),(27,28,1),(28,29,1),(28,42,1),(29,30,1),(30,31,1),(31,32,1),(31,43,1),(32,33,1),(33,34,1),(34,35,1),(34,44,1),(35,36,1),(36,37,1),(37,38,1),(38,39,1),(38,44,1),(39,40,1),(39,41,1),(41,42,1),(42,43,1),(43,44,1),(45,46,1),(46,47,1),(46,139,1),(47,48,1),(48,49,1),(48,138,1),(49,50,1),(50,51,1),(50,137,1),(51,52,1),(51,129,1),(52,53,1),(53,54,1),(54,55,1),(54,130,1),(55,56,1),(55,62,1),(56,57,1),(56,61,1),(57,58,1),(58,59,1),(59,60,1),(60,61,1),(62,63,1),(62,136,1),(63,64,1),(64,65,1),(65,66,1),(65,135,1),(66,67,1),(66,120,1),(67,68,1),(67,76,1),(68,69,1),(68,76,1),(69,70,1),(69,71,1),(70,71,1),(71,72,1),(72,73,1),(72,75,1),(73,74,1),(74,75,1),(76,77,1),(77,78,1),(77,79,1),(78,79,1),(79,80,1),(80,81,1),(80,83,1),(81,82,1),(82,83,1),(83,84,1),(84,85,1),(84,107,1),(85,86,1),(85,98,1),(86,87,1),(86,89,1),(87,88,1),(88,89,1),(89,90,1),(90,91,1),(90,97,1),(91,92,1),(92,93,1),(92,97,1),(93,94,1),(93,96,1),(94,95,1),(95,96,1),(98,99,1),(98,107,1),(99,100,1),(99,106,1),(100,101,1),(101,102,1),(101,106,1),(102,103,1),(102,105,1),(103,104,1),(104,105,1),(107,108,1),(108,109,1),(108,111,1),(109,110,1),(110,111,1),(111,112,1),(112,113,1),(112,119,1),(113,114,1),(114,115,1),(114,119,1),(115,116,1),(115,118,1),(116,117,1),(117,118,1),(120,121,1),(121,122,1),(121,134,1),(122,123,1),(123,124,1),(124,125,1),(124,133,1),(125,126,1),(126,127,1),(127,128,1),(127,132,1),(128,129,1),(129,130,1),(130,131,1),(131,132,1),(131,136,1),(132,133,1),(133,134,1),(134,135,1),(135,136,1),(137,138,1),(138,139,1),(139,140,1),(140,141,1),(140,144,1),(140,166,1),(141,142,1),(142,143,1),(143,144,1),(144,145,1),(144,164,1),(145,146,1),(146,147,1),(146,159,1),(147,148,1),(148,149,1),(149,150,1),(150,151,1),(150,155,1),(151,152,1),(151,155,1),(152,153,1),(152,154,1),(153,154,1),(155,156,1),(156,157,1),(156,158,1),(157,158,1),(159,160,1),(160,161,1),(161,162,1),(161,163,1),(162,163,1),(164,165,1),(165,166,1)]) fromList[(0,(-662.99316,527.0142)),(1,(-568.1117,495.4309)),(2,(-470.15027,515.5197)),(3,(-395.35748,581.8977)),(4,(-297.39612,601.9866)),(5,(-363.77423,676.77924)),(6,(-501.73358,420.63824)),(7,(-481.6448,322.67685)),(8,(-549.08936,248.8443)),(9,(-648.46405,260.01047)),(10,(-740.10803,219.99332)),(11,(-799.4655,139.51552)),(12,(-891.1097,99.49839)),(13,(-810.6317,40.140945)),(14,(-728.9418,319.36792)),(15,(-768.9589,411.01196)),(16,(-757.7926,510.38666)),(17,(-849.43665,470.36957)),(18,(-948.81134,481.5356)),(19,(-1008.16895,401.05783)),(20,(-968.1519,309.41397)),(21,(-1027.5094,228.93607)),(22,(-1126.884,240.10219)),(23,(-1166.9011,331.74634)),(24,(-1266.2756,342.91263)),(25,(-1306.2927,434.55658)),(26,(-1405.6676,445.72247)),(27,(-1445.6844,537.36676)),(28,(-1386.3271,617.8446)),(29,(-1426.3444,709.48865)),(30,(-1366.9866,789.96643)),(31,(-1267.6118,778.8002)),(32,(-1208.2543,859.2782)),(33,(-1108.8798,848.11206)),(34,(-1068.8627,756.4679)),(35,(-969.48804,745.30176)),(36,(-929.4708,653.6577)),(37,(-988.8285,573.17975)),(38,(-1088.203,584.34595)),(39,(-1147.5605,503.86804)),(40,(-1107.5437,412.22406)),(41,(-1246.9353,515.0343)),(42,(-1286.9524,606.67834)),(43,(-1227.5946,687.15625)),(44,(-1128.2202,675.99005)),(45,(-499.712,161.88528)),(46,(-401.7506,181.97412)),(47,(-390.58444,281.34875)),(48,(-292.62305,301.4376)),(49,(-225.17853,375.27008)),(50,(-134.1182,333.94205)),(51,(-47.15911,383.31934)),(52,(39.082447,332.69928)),(53,(126.04152,382.0766)),(54,(126.75896,482.07404)),(55,(213.71805,531.4515)),(56,(299.9597,480.83142)),(57,(386.91876,530.2089)),(58,(473.1603,479.5888)),(59,(472.4429,379.59137)),(60,(385.48383,330.214)),(61,(299.24234,380.8341)),(62,(214.43549,631.44885)),(63,(301.39456,680.8263)),(64,(302.112,780.82367)),(65,(215.87035,831.4437)),(66,(216.58781,931.44116)),(67,(303.54684,980.8186)),(68,(354.16693,1067.0602)),(69,(354.8844,1167.0575)),(70,(405.50427,1253.2991)),(71,(305.5069,1254.0165)),(72,(219.26501,1304.6365)),(73,(122.489334,1279.4476)),(74,(97.300674,1376.2234)),(75,(194.07639,1401.412)),(76,(403.5443,980.1011)),(77,(489.78586,929.4811)),(78,(539.16364,842.52234)),(79,(589.78326,928.76355)),(80,(676.742,978.14105)),(81,(703.3163,1074.5458)),(82,(799.7205,1047.9716)),(83,(773.1465,951.56683)),(84,(822.5239,864.60846)),(85,(918.92865,838.0337)),(86,(1005.88763,887.4114)),(87,(1032.4615,983.8159)),(88,(1128.8662,957.2418)),(89,(1102.2916,860.8374)),(90,(1151.6693,773.87805)),(91,(1248.0739,747.30414)),(92,(1221.4998,650.8998)),(93,(1270.8773,563.941)),(94,(1244.3032,467.5361)),(95,(1340.7083,440.96338)),(96,(1367.2816,537.3667)),(97,(1125.0953,677.47406)),(98,(892.35455,741.62976)),(99,(941.73175,654.67053)),(100,(1038.1362,628.0969)),(101,(1011.5624,531.69196)),(102,(1060.9397,444.7329)),(103,(1157.3439,418.159)),(104,(1130.77,321.75494)),(105,(1034.3655,348.32874)),(106,(915.15796,558.26636)),(107,(795.9498,768.2039)),(108,(708.99097,718.8265)),(109,(612.5863,745.40094)),(110,(586.01245,648.9961)),(111,(682.41656,622.4219)),(112,(731.7939,535.46326)),(113,(705.2197,439.05905)),(114,(801.62463,412.4848)),(115,(851.00214,325.52646)),(116,(824.4283,229.12172)),(117,(920.8327,202.54712)),(118,(947.4063,298.9523)),(119,(828.1986,508.8892)),(120,(130.3462,982.0612)),(121,(43.38719,932.6838)),(122,(-42.854477,983.3039)),(123,(-129.81346,933.92645)),(124,(-130.53087,833.92896)),(125,(-217.4899,784.5516)),(126,(-218.20734,684.55414)),(127,(-131.96573,633.93414)),(128,(-132.68317,533.9368)),(129,(-46.441612,483.3168)),(130,(40.517395,532.6941)),(131,(41.234894,632.6916)),(132,(-45.00673,683.3116)),(133,(-44.28926,783.30896)),(134,(42.669724,832.68634)),(135,(128.91136,782.06635)),(136,(128.1939,682.0689)),(137,(-145.28423,234.56735)),(138,(-243.24565,214.47856)),(139,(-310.69022,140.6461)),(140,(-290.60135,42.68468)),(141,(-192.24767,24.61361)),(142,(-179.04134,-74.510315)),(143,(-269.23288,-117.70154)),(144,(-338.18076,-45.27102)),(145,(-318.09204,-143.23239)),(146,(-392.8846,-209.61069)),(147,(-487.76614,-178.02736)),(148,(-507.85498,-80.06591)),(149,(-602.7364,-48.482666)),(150,(-677.52905,-114.86073)),(151,(-775.4906,-134.94969)),(152,(-870.37195,-103.36638)),(153,(-936.75024,-28.573715)),(154,(-968.3335,-123.455414)),(155,(-709.1125,-209.74236)),(156,(-689.02356,-307.70364)),(157,(-622.64526,-382.4962)),(158,(-720.60657,-402.5853)),(159,(-372.79587,-307.57196)),(160,(-277.9144,-339.15527)),(161,(-203.12175,-272.7773)),(162,(-105.160255,-252.68863)),(163,(-171.53839,-177.89594)),(164,(-436.5345,-27.200035)),(165,(-449.7409,71.92412)),(166,(-359.54932,115.11525))]
paths_through_conjugated_cycles ([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[(0,1,1),(1,2,1),(1,29,1),(1,32,1),(1,46,1),(2,3,1),(3,4,1),(4,5,1),(4,8,1),(5,6,1),(5,7,1),(6,7,1),(8,9,1),(8,26,1),(9,10,1),(10,11,1),(10,19,1),(10,22,1),(10,25,1),(11,12,1),(12,13,1),(13,14,1),(13,18,1),(14,15,1),(15,16,1),(16,17,1),(17,18,1),(19,20,1),(20,21,1),(21,22,1),(22,23,1),(23,24,1),(24,25,1),(26,27,1),(26,28,1),(27,28,1),(29,30,1),(29,31,1),(30,31,1),(32,33,1),(32,49,1),(33,34,1),(34,35,1),(35,36,1),(36,37,1),(36,49,1),(37,38,1),(38,39,1),(39,40,1),(39,48,1),(40,41,1),(41,42,1),(42,43,1),(42,47,1),(43,44,1),(44,45,1),(45,46,1),(46,47,1),(47,48,1),(48,49,1)]) fromList[(0,(-144.56487,375.90143)),(1,(-177.34793,281.42767)),(2,(-111.9228,205.79996)),(3,(-13.714699,224.64581)),(4,(51.71037,149.01802)),(5,(18.927296,54.54438)),(6,(-56.700478,-10.880676)),(7,(37.773186,-43.66371)),(8,(149.91846,167.86389)),(9,(182.70152,262.33755)),(10,(280.9096,281.18338)),(11,(200.14886,340.15543)),(12,(210.83972,439.5822)),(13,(130.07907,498.55435)),(14,(140.76997,597.9812)),(15,(60.009262,656.95337)),(16,(-31.442535,616.49835)),(17,(-42.133423,517.0715)),(18,(38.62741,458.09955)),(19,(300.22546,379.3002)),(20,(399.50897,391.2495)),(21,(441.55368,300.51776)),(22,(368.2553,232.49323)),(23,(348.93945,134.37643)),(24,(249.65598,122.42721)),(25,(207.61124,213.15886)),(26,(215.34352,92.23614)),(27,(309.8172,59.453033)),(28,(234.18939,-5.9720078)),(29,(-79.13976,300.2736)),(30,(-3.512024,365.6986)),(31,(15.33387,267.49054)),(32,(-210.13089,186.95404)),(33,(-144.7058,111.326256)),(34,(-177.4888,16.8526)),(35,(-275.69687,-1.9932556)),(36,(-341.12204,73.63444)),(37,(-439.33017,54.788574)),(38,(-504.75516,130.4163)),(39,(-471.97226,224.88998)),(40,(-537.3974,300.5178)),(41,(-504.61426,394.9914)),(42,(-406.40613,413.83737)),(43,(-373.6231,508.31097)),(44,(-275.41507,527.1569)),(45,(-209.98996,451.5291)),(46,(-242.773,357.05548)),(47,(-340.98102,338.2096)),(48,(-373.76404,243.7359)),(49,(-308.33902,168.10812))]
takes_long_if_done_wrong ([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[(0,1,1),(0,5,1),(1,2,1),(2,3,1),(3,4,1),(3,42,1),(4,5,1),(4,6,1),(6,7,1),(7,8,1),(7,37,1),(8,9,1),(8,15,1),(9,10,1),(10,11,1),(11,12,1),(11,14,1),(12,13,1),(13,14,1),(15,16,1),(15,32,1),(16,17,1),(17,18,1),(18,19,1),(18,33,1),(19,20,1),(20,21,1),(20,35,1),(21,22,1),(22,23,1),(23,24,1),(24,25,1),(24,35,1),(25,26,1),(26,27,1),(26,36,1),(27,28,1),(28,29,1),(29,30,1),(30,31,1),(30,36,1),(31,32,1),(32,33,1),(33,34,1),(34,35,1),(34,36,1),(37,38,1),(37,42,1),(38,39,1),(39,40,1),(40,41,1),(41,42,1)]) fromList[]
too_big_cycle ([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[(0,1,1),(0,33,1),(1,2,1),(2,3,1),(3,4,1),(4,5,1),(5,6,1),(6,7,1),(7,8,1),(7,13,1),(8,9,1),(9,10,1),(10,11,1),(10,12,1),(11,12,1),(13,14,1),(14,15,1),(15,16,1),(16,17,1),(17,18,1),(18,19,1),(19,20,1),(20,21,1),(21,22,1),(21,23,1),(22,23,1),(23,24,1),(24,25,1),(25,26,1),(25,27,1),(26,27,1),(27,28,1),(28,29,1),(29,30,1),(30,31,1),(31,32,1),(32,33,1)]) fromList[]
bad_conjugated_cycle ([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[(0,1,1),(0,21,1),(1,2,1),(2,3,1),(3,4,1),(4,5,1),(5,6,1),(6,7,1),(7,8,1),(8,9,1),(9,10,1),(9,31,1),(10,11,1),(11,12,1),(11,32,1),(12,13,1),(13,14,1),(14,15,1),(14,22,1),(15,16,1),(16,17,1),(17,18,1),(18,19,1),(19,20,1),(20,21,1),(22,23,1),(22,32,1),(23,24,1),(24,25,1),(25,26,1),(26,27,1),(26,31,1),(27,28,1),(27,31,1),(28,29,1),(28,30,1),(29,30,1)]) fromList[]
disappearing_cycle ([0,0,0,0,0,0,0,0,0,0,0,0,0,0],[(0,1,1),(0,2,1),(1,3,1),(2,4,1),(3,5,1),(4,5,1),(4,6,1),(6,7,1),(7,8,1),(8,9,1),(9,10,1),(10,11,1),(11,12,1),(3,12,1)]) fromList[]
2 changes: 1 addition & 1 deletion math-grads.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: math-grads
version: 0.1.6.7
version: 0.1.6.8
synopsis: Library containing graph data structures and graph algorithms
description: Library containing graph data structures and graph algorithms.
.
Expand Down
10 changes: 8 additions & 2 deletions test/Coords.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}

Expand All @@ -13,15 +14,20 @@ import Test.Hspec

instance Drawable GenericGraph Int Int

pathToGraphs :: FilePath
pathToGraphs = "data/Graphs.txt"
pathToGraphs, pathToGraphsGHC9 :: FilePath
pathToGraphs = "data/Graphs.txt"
pathToGraphsGHC9 = "data/GraphsGHC9.txt"

roundPair :: (Float, Float) -> (Int, Int)
roundPair (a, b) = (round a, round b)

testMap :: IO (Map String (GenericGraph Int Int, Map Int (Int, Int)))
testMap = do
#if MIN_VERSION_GLASGOW_HASKELL(9, 2, 5, 0)
graphsInLines <- lines <$> readFile pathToGraphsGHC9
#else
graphsInLines <- lines <$> readFile pathToGraphs
#endif
let graphsInWords = fmap words graphsInLines

let forMap = fmap (\(x : y : z : _) -> (x, (fromList (read y), fmap roundPair (read z)))) graphsInWords
Expand Down

0 comments on commit 8f6fa20

Please sign in to comment.