Deal with deprecation warning in Custom.
This commit is contained in:
parent
d19a347fd5
commit
472c1424ba
1 changed files with 10 additions and 2 deletions
|
@ -1,6 +1,10 @@
|
|||
{-# LANGUAGE OverlappingInstances, FlexibleInstances, OverloadedStrings,
|
||||
ScopedTypeVariables, DeriveDataTypeable #-}
|
||||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||
{-# LANGUAGE FlexibleInstances, OverloadedStrings,
|
||||
ScopedTypeVariables, DeriveDataTypeable, CPP #-}
|
||||
#if MIN_VERSION_base(4,8,0)
|
||||
#else
|
||||
{-# LANGUAGE OverlappingInstances #-}
|
||||
#endif
|
||||
{- Copyright (C) 2012-2015 John MacFarlane <jgm@berkeley.edu>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
|
@ -65,7 +69,11 @@ getList lua i' = do
|
|||
return (x : rest)
|
||||
else return []
|
||||
|
||||
#if MIN_VERSION_base(4,8,0)
|
||||
instance {-# OVERLAPS #-} StackValue a => StackValue [a] where
|
||||
#else
|
||||
instance StackValue a => StackValue [a] where
|
||||
#endif
|
||||
push lua xs = do
|
||||
Lua.createtable lua (length xs + 1) 0
|
||||
let addValue (i, x) = Lua.push lua x >> Lua.rawseti lua (-2) i
|
||||
|
|
Loading…
Reference in a new issue