summaryrefslogtreecommitdiff
path: root/utils/hpc/HpcOverlay.hs
blob: ba229c5ef5cbbdcea8c42dd9aa5c7b3edda71c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module HpcOverlay where

import HpcFlags
import HpcParser

overlay_options 
        = srcDirOpt
        . hpcDirOpt
        . outputOpt

overlay_plugin = Plugin { name = "overlay"
	      	       , usage = "[OPTION] .. <OVERLAY_FILE> [<OVERLAY_FILE> [...]]" 
		       , options = overlay_options 
		       , summary = "Generate a .tix file from an overlay file"
		       , implementation = overlay_main
		       , init_flags = default_flags
		       , final_flags = default_final_flags
		       }


overlay_main flags [] = hpcError overlay_plugin $ "no overlay file specified" 
overlay_main flags files = do
  print ("HERE", files)
  result <- hpcParser (head files)
  print result
  return ()