aboutsummaryrefslogtreecommitdiff
path: root/src/Internal/NoPersist.hs
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-04-10 13:26:16 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:46 -0600
commita652c330707e2e9bbe963e01af79ce730cf3452e (patch)
tree047655195f50efcbd51db8f825acf589dc6abead /src/Internal/NoPersist.hs
parent381a3e5a00813314249bb74b5460f5ff5a4006bb (diff)
downloadrde-a652c330707e2e9bbe963e01af79ce730cf3452e.tar.gz
rde-a652c330707e2e9bbe963e01af79ce730cf3452e.tar.bz2
rde-a652c330707e2e9bbe963e01af79ce730cf3452e.zip
Rename Internal to Rahm.Desktop
Diffstat (limited to 'src/Internal/NoPersist.hs')
-rw-r--r--src/Internal/NoPersist.hs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/Internal/NoPersist.hs b/src/Internal/NoPersist.hs
deleted file mode 100644
index a67e649..0000000
--- a/src/Internal/NoPersist.hs
+++ /dev/null
@@ -1,23 +0,0 @@
--- Module for not persisting XMonad state. To be used with ExtensibleState
--- for data types that cannot be persisted.
-module Internal.NoPersist where
-
-import Data.Default (Default, def)
-import Data.Typeable
-
-import XMonad (ExtensionClass(..))
-
-newtype NoPersist a = NoPersist a
- deriving (Typeable)
-
-instance Show (NoPersist a) where
- show (NoPersist _) = show ()
-
-instance (Default a) => Read (NoPersist a) where
- readsPrec i s = map (\(_, s) -> (NoPersist def, s)) (readsPrec i s :: [((), String)])
-
-instance (Default a) => Default (NoPersist a) where
- def = NoPersist def
-
-instance (Default a, Typeable a) => ExtensionClass (NoPersist a) where
- initialValue = NoPersist def