You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--| A completely empty configuration.empty::Config
empty =Config""$ unsafePerformIO $do
p <- newIORef []
m <- newIORef H.empty
s <- newIORef H.empty
returnBaseConfig {
cfgAuto =Nothing
, cfgPaths = p
, cfgMap = m
, cfgSubs = s
}
{-# NOINLINE empty #-}
If I let myEmpty = empty, and then apply something like addToConfig to myEmpty, suddenly myEmpty and empty are no longer equivalent. I believe the only sane thing to do is to remove empty altogether, replacing it with mkEmpty :: IO Config.
The text was updated successfully, but these errors were encountered:
empty
is defined asIf I
let myEmpty = empty
, and then apply something likeaddToConfig
tomyEmpty
, suddenlymyEmpty
andempty
are no longer equivalent. I believe the only sane thing to do is to removeempty
altogether, replacing it withmkEmpty :: IO Config
.The text was updated successfully, but these errors were encountered: