Add files, minimal working rewind gun that must be equipped to charge

This commit is contained in:
2021-11-27 11:49:23 +00:00
parent e7ea7377e2
commit fe37f208da
3 changed files with 29 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE StrictData #-}
module MaybeHelp where
import Control.Lens
-- | Strict maybe
data Maybe' a
= Just' {_Just' :: a }
| Nothing'
fromJust' :: Maybe' a -> a
fromJust' mx = case mx of
Just' x -> x
Nothing' -> error "no fromJust'"
makeLenses ''Maybe'