File: Issue30.chs

package info (click to toggle)
c2hs 0.28.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,788 kB
  • sloc: haskell: 6,882; ansic: 1,857; xml: 1,411; makefile: 111
file content (20 lines) | stat: -rwxr-xr-x 250 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module Main where

import Foreign
import Foreign.C

{#import Issue30Aux1#}
{#import Issue30Aux2#}

#include "issue30.h"

{#fun foo {`Int'} -> `Int'#}

main :: IO ()
main = do
  f <- foo 2
  f1 <- foo1 1
  f2 <- foo2 1
  print f
  print f1
  print f2