Skip to content

Instantly share code, notes, and snippets.

@wavewave
Created May 19, 2013 23:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wavewave/5609525 to your computer and use it in GitHub Desktop.
Save wavewave/5609525 to your computer and use it in GitHub Desktop.
recursive module import using hs-boot and cabal
module A where
import {-# SOURCE #-} B
data Atyp = Atyp Btyp
module B where
import A
data Btyp = Btyp Atyp
module B where
data Btyp
Name: hsboottest
Version: 0.0.999
Synopsis:
Description:
Author: Ian-Woo Kim
Maintainer: Ian-Woo Kim <ianwookim@gmail.com>
Build-Type: Simple
Cabal-Version: >= 1.8
Data-files:
Library
ghc-options: -Wall -O2 -threaded -funbox-strict-fields -fno-warn-unused-do-bind
ghc-prof-options: -caf-all -auto-all
Build-Depends: base>4
Exposed-Modules:
A
B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment