[Haskell-beginners] MonadThrow, MonadReader and shake

PICCA Frederic-Emmanuel frederic-emmanuel.picca at synchrotron-soleil.fr
Fri Dec 14 13:04:14 UTC 2018


I forgot this on.

data DataCollection (t :: CollectType) (f :: CollectSourceFormat) =
    DataCollection { actualCenteringPosition :: Text
                   , axisEnd :: Double
                   , axisRange :: Double
                   , axisStart :: Double
                   , beamShape :: Text
                   , beamSizeAtSampleX :: Double
                   , beamSizeAtSampleY :: Double
                   , centeringMethod :: Maybe Text
                   , dataCollectionId :: DataCollectionId
                   , dataCollectionNumber :: Int
                   , detector2theta :: Double
                   , detectorDistance :: Double
                   , endTime :: Text
                   , exposureTime :: Double
                   , fileTemplate :: Text
                   , flux :: Double
                   , fluxEnd :: Double
                   , imageDirectory :: Path Abs Dir
                   , imagePrefix :: Text -- (FilePath)
                   , imageSuffix :: Maybe Text -- (FilePath) ?? Maybe
                   , kappaStart :: Double
                   , numberOfImages :: Int
                   , numberOfPasses :: Int
                   , omegaStart :: Maybe Double
                   , overlap :: Double
                   , phiStart :: Double
                   , printableForReport :: Int
                   , resolution :: Double
                   , resolutionAtCorner :: Maybe Double
                   , rotationAxis :: Text
                   , runStatus :: Text
                   , slitGapHorizontal :: Double
                   , slitGapVertical :: Double
                   , startImageNumber :: Int
                   , startTime :: Text
                   , synchrotronMode :: Text
                   , transmission :: Double
                   , undulatorGap1 :: Maybe Double
                   , undulatorGap2 :: Maybe Double
                   , wavelength :: Double
                   , xbeam :: Double
                   , xtalSnapshotFullPath1 :: Maybe (Path Abs File)
                   , xtalSnapshotFullPath2 :: Maybe (Path Abs File)
                   , xtalSnapshotFullPath3 :: Maybe (Path Abs File)
                   , xtalSnapshotFullPath4 :: Maybe (Path Abs File)
                   , ybeam :: Double
                   , dataCollectionGroupId :: Int
                   } deriving Show

Where we get the t and f parameter. :))


More information about the Beginners mailing list