File: DeepSeq.hs

package info (click to toggle)
haskell-serialise 0.2.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 564 kB
  • sloc: haskell: 6,809; makefile: 6
file content (11 lines) | stat: -rw-r--r-- 200 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Micro.DeepSeq where

import Micro.Types

import Control.DeepSeq

instance NFData Tree where
  rnf Leaf = ()
  rnf (Fork a b) = rnf a `seq` rnf b `seq` ()