Skip to content
Snippets Groups Projects
Commit 76dd4889 authored by Ashley Yakeley's avatar Ashley Yakeley
Browse files

base: documentation for Nat HasResolution

parent 57760158
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,7 @@ instance (Typeable k,Typeable a) => Data (Fixed (a :: k)) where
class HasResolution (a :: k) where
resolution :: p a -> Integer
-- | For example, @Fixed 1000@ will give you a 'Fixed' with a resolution of 1000.
instance KnownNat n => HasResolution n where
resolution _ = natVal (Proxy :: Proxy n)
......
......@@ -5,6 +5,8 @@
* Add a `TestEquality` instance for the `Compose` newtype.
* Add `HasResolution` instances for `Nat`s.
## 4.13.0.0 *TBA*
* Bundled with GHC *TBA*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment