never executed always true always false
    1 {-# LANGUAGE CPP #-}
    2 
    3 -- |
    4 -- Copyright: © 2018-2021 IOHK
    5 -- License: Apache-2.0
    6 --
    7 -- A compatibility function for the GHCJS build.
    8 
    9 module Cardano.Address.Compat
   10     ( ghcjsBuildSupport
   11     ) where
   12 
   13 import Prelude
   14 
   15 #ifdef ghcjs_HOST_OS
   16 import Cardano.Address.Jsbits
   17     ( addJsbitsDependency )
   18 #endif
   19 
   20 -- | This function must be used somewhere, so that external Javascript files are
   21 -- correctly linked in the GHCJS build.
   22 --
   23 -- For non-GHCJS, it has no effect.
   24 ghcjsBuildSupport :: IO ()
   25 #ifdef ghcjs_HOST_OS
   26 ghcjsBuildSupport = addJsbitsDependency
   27 #else
   28 ghcjsBuildSupport = pure ()
   29 #endif