Skip to content

Commit

Permalink
Merge pull request #50 from lfborjas/strict-experiment
Browse files Browse the repository at this point in the history
Remove naïve strictness annotations
  • Loading branch information
lfborjas authored Dec 27, 2020
2 parents 225e1eb + 3c4de06 commit faff2c7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
30 changes: 15 additions & 15 deletions src/Ephemeris/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -274,25 +274,25 @@ data HoroscopeData = HoroscopeData

data TransitData = TransitData
{
natalPlanetPositions :: ![PlanetPosition]
, natalAngles :: !Angles
, natalHouses :: ![House]
, natalHouseSystem :: !HouseSystem
, transitingPlanetPositions :: ![PlanetPosition]
, transitingHouses :: ![House]
, transitingAngles :: !Angles
, transitingHouseSystem :: !HouseSystem
, planetaryTransits :: ![(PlanetaryAspect, PlanetaryTransit)]
, angleTransits :: ![(AngleAspect, AngleTransit)]
natalPlanetPositions :: [PlanetPosition]
, natalAngles :: Angles
, natalHouses :: [House]
, natalHouseSystem :: HouseSystem
, transitingPlanetPositions :: [PlanetPosition]
, transitingHouses :: [House]
, transitingAngles :: Angles
, transitingHouseSystem :: HouseSystem
, planetaryTransits :: [(PlanetaryAspect, PlanetaryTransit)]
, angleTransits :: [(AngleAspect, AngleTransit)]
} deriving (Eq, Show)

data Transit a = Transit
{
transiting :: !PlanetPosition
, transited :: !a
, transitStarts :: !(Maybe UTCTime)
, transitEnds :: !(Maybe UTCTime)
, immediateTriggers :: ![UTCTime]
transiting :: PlanetPosition
, transited :: a
, transitStarts :: (Maybe UTCTime)
, transitEnds :: (Maybe UTCTime)
, immediateTriggers :: [UTCTime]
} deriving stock (Eq, Show)

type PlanetaryTransit = Transit PlanetPosition
Expand Down
2 changes: 1 addition & 1 deletion test/Ephemeris/AspectSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec = do
, (sq, (Longitude 95, Longitude 10), Just (Applying, 5))
, (sq, (Longitude 100, Longitude 10), Just (Exact, 0))
, (sq, (Longitude 130, Longitude 10), Nothing)
, (cnj, (Longitude 270, Longitude 270), Just (Exact, 0) )
, (cnj, (Longitude 270, Longitude 270), Just (Exact, 0))
]
sq = Aspect{ aspectType = Major, aspectName = Square, angle = 90.0, maxOrb = 10.0, temperament = Analytical }
cnj = Aspect{ aspectType = Major, aspectName = Conjunction, angle = 0.0, maxOrb = 10.0, temperament = Analytical }
Expand Down

0 comments on commit faff2c7

Please sign in to comment.